Skip to content

Commit

Permalink
Merge pull request f4pga#2322 from antmicro/add-pr-creation-conda-loc…
Browse files Browse the repository at this point in the history
…k-ci

gh-actions: update conda lock version and issue PR with deploy key
  • Loading branch information
acomodi authored Nov 19, 2021
2 parents ef6fff3 + 22ab2fb commit 7b8d799
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions .github/workflows/update_conda_lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,23 @@ jobs:
with:
fetch-depth: 0
submodules: 'recursive'
ref: 'master' # It will be the PR's base
ssh-key: ${{ secrets.SSH_DEPLOY_KEY }}

- name: Update Lock and Issue a Pull Request
if: ${{ github.ref == 'refs/heads/master' }}
uses: SymbiFlow/actions/update_conda_lock@3fdc436e761a6312c3e0a554f18b727c34434106
- name: Update Conda Lock
uses: SymbiFlow/actions/update_conda_lock@c6142a4ec7859653352757eb8f7c4630f63f96e3
with:
branch_name_core: 'update_conda_lock'
conda_lock_file: 'conda_lock.yml'
environment_file: 'environment.yml'
gh_access_token: ${{ secrets.GITHUB_TOKEN }}
user_email: '[email protected]'
user_name: 'SymbiFlow Robot'

- name: Issue Pull Request
if: ${{ github.ref == 'refs/heads/master' }}
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "[BOT] Conda Lock Update"
title: "[BOT] Conda Lock Update"
body: Pull Request created by the conda lock update workflow.
branch: bot-conda-lock-update
labels: bot-conda-lock-update,kokoro:force-run
delete-branch: true
signoff: true

0 comments on commit 7b8d799

Please sign in to comment.