Skip to content
Merged
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/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ jobs:
contents: write
id-token: write
issues: write
statuses: write

steps:
- name: Checkout code
Expand Down Expand Up @@ -243,6 +244,24 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ALLOW_MISSING_INITIAL_NPM_TOKEN: 'true'

# GITHUB_TOKEN pushes do not trigger workflows, so the release commit
# would otherwise sit on master with no checks (repo looks red/pending).
- name: Mark release HEAD as success
if: success()
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
SHA=$(git ls-remote origin refs/heads/master | awk '{print $1}')
if [ -z "$SHA" ]; then
echo "Could not resolve origin/master"
exit 1
fi
gh api "repos/${{ github.repository }}/statuses/${SHA}" \
-f state=success \
-f context='CI/CD Pipeline' \
-f description='Release commit already validated' \
-f target_url="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"

# ============================================================================
# STAGE 4: POST-PUBLISH SMOKE TESTS
# ============================================================================
Expand Down
Loading