Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/cli-post-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,28 @@ permissions:
id-token: write # Needed for aws-actions/configure-aws-credentials@v1

jobs:
# Make sure the cli-release workflow that built this tag actually succeeded
# before we promote it to stable. The `released` event can fire even when
# cli-release failed partway (or a release was published by other means), so
# guard against finalizing a broken release.
check-release:
runs-on: ubuntu-latest
steps:
# The `released` event can fire before the cli-release run has finished,
# so wait for it to complete. The action exits with failure if the waited
# workflow failed, which blocks the publish job below.
- name: Wait for cli-release to succeed for this tag
uses: int128/wait-for-workflows-action@v1.76.0
with:
sha: ${{ github.sha }}
# cli-release is triggered by the tag push, not the release event.
filter-workflow-events: push
filter-workflow-names: cli-release

publish:
runs-on: ubuntu-latest
environment: release
needs: check-release
steps:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
Expand Down
Loading