Skip to content

Commit

Permalink
Fix Slack msg in case of release failure (#90)
Browse files Browse the repository at this point in the history
Signed-off-by: Ali Ok <[email protected]>
  • Loading branch information
aliok authored Sep 26, 2024
1 parent 6e3c037 commit f8db152
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/backstage-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,19 +127,17 @@ jobs:

- name: Post status to Slack
# Note: using env.SLACK_WEBHOOK here because secrets are not allowed in the if block.
if: env.SLACK_WEBHOOK != ''
uses: rtCamp/action-slack-notify@v2.3.0
if: ${{ env.SLACK_WEBHOOK != '' && failure()}}
uses: rtCamp/action-slack-notify@v2.1.0
env:
SLACK_CHANNEL: knative-release
SLACK_USERNAME: knative/release
SLACK_ICON: http://github.com/knative.png?size=48
SLACK_USERNAME: knative/release
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_CHANNEL: knative-release
MSG_MINIMAL: 'true'
SLACK_FOOTER: View GitHub Run - https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}

SLACK_TITLE: '${{ github.repository }} release failed'
SLACK_MESSAGE: |
${{ env.CHECK_MESSAGE }}
${{ env.VERIFY_MESSAGE }}
View GitHub Run - https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
- name: Fail if NO-GO
if: env.current == 'false'
Expand Down

0 comments on commit f8db152

Please sign in to comment.