From 2145b5a93e80285f3577f489e41a17296e860896 Mon Sep 17 00:00:00 2001 From: Derek Schuff Date: Thu, 24 Oct 2024 18:24:55 -0700 Subject: [PATCH] Update release tagging workflow to handle external triggering When triggered from Chromium CI, the credential is for the emscripten-bot account. --- .github/workflows/tag-release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tag-release.yml b/.github/workflows/tag-release.yml index 6f33ffec89..7a6ac9764a 100644 --- a/.github/workflows/tag-release.yml +++ b/.github/workflows/tag-release.yml @@ -17,7 +17,8 @@ jobs: # The assumption is that when manual changes happen, we want to handle # tagging manually too. name: Check for release commit and create tag - if: github.event.head_commit.author.username == 'github-actions[bot]' + # The author is emscripten-bot when triggered from Chromium CI, and github-actions when manually triggered. + if: ${ github.event.head_commit.author.username == 'github-actions[bot]' || github.event.head_commit.author.username == 'emscripten-bot' } runs-on: ubuntu-latest outputs: is_release: ${{ steps.create-tag.outputs.result }}