Skip to content

Commit

Permalink
Add slack message on bad release ref (#2116)
Browse files Browse the repository at this point in the history
This adds a slack notification to the team in case an error when
fetching the release ref. Some failures occurred already which were
silently ignored:

https://github.com/dfinity/internet-identity/actions/runs/7068859771/job/19243912571
  • Loading branch information
nmattia authored Dec 7, 2023
1 parent 3ca8e63 commit c484ca2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/release-build-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ jobs:
echo "ii_prod_sha256=$latest_release_ii_prod_sha256" >> "$GITHUB_OUTPUT"
echo "archive_sha256=$latest_release_archive_sha256" >> "$GITHUB_OUTPUT"
id: release
# Since the release build check is a scheduled job, a failure won't be shown on any
# PR status. To notify the team, we send a message to our Slack channel on failure.
- name: Notify Slack on failure
uses: ./.github/actions/slack
if: ${{ failure() }}
with:
WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
MESSAGE: "Release build check failed: could not get release"

# Perform the clean build (non-docker), using the release as checkout
clean-build:
Expand Down

0 comments on commit c484ca2

Please sign in to comment.