Update release tagging workflow to handle external triggering (#1482)
When triggered from Chromium CI, the credential is for the emscripten-bot account.
This commit is contained in:
3
.github/workflows/tag-release.yml
vendored
3
.github/workflows/tag-release.yml
vendored
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user