From 22ab2fb162c4b0b8100199a26c3d82b854b53bcd Mon Sep 17 00:00:00 2001 From: Alessandro Comodi Date: Fri, 19 Nov 2021 13:13:26 +0100 Subject: [PATCH] gh-actions: update conda lock version and issue PR with deploy key Signed-off-by: Alessandro Comodi --- .github/workflows/update_conda_lock.yml | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/.github/workflows/update_conda_lock.yml b/.github/workflows/update_conda_lock.yml index 6b89327c50..575b1c0971 100644 --- a/.github/workflows/update_conda_lock.yml +++ b/.github/workflows/update_conda_lock.yml @@ -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: 'foss-fpga-tools@google.com' - 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