name: update_conda_lock

on:
  pull_request:
  push:
  schedule:
    - cron: '0 3 * * *'
  workflow_dispatch:

jobs:
  update-locks:
    runs-on: ubuntu-18.04
    strategy:
      fail-fast: false
    steps:
    - name: Checkout Repository
      uses: actions/checkout@v2
      with:
        fetch-depth: 0
        submodules:  'recursive'
        ref:         'master'    # It will be the PR's base

    - name: Update Lock and Issue a Pull Request
      uses: SymbiFlow/actions/update_conda_lock@7a34d4c1a27dc369cfc618ae0902fcfaf1a36c59
      with:
        branch_name_core: 'update_conda_lock'
        conda_lock_file:  'conda_lock.yml'
        environment_file: 'environment.yml'
        gh_access_token:  ${{ secrets.GITHUB_TOKEN }}

Add workflow updating Conda Lock
Add workflow updating Conda Lock

Signed-off-by: Adam Jeliński <ca915f0ff48aa92c63766034d91f63de55abeb4f@antmicro.com>
