Skip to content

Commit

Permalink
Merge pull request #50 from galasa-dev/iss1996
Browse files Browse the repository at this point in the history
Iss1996 - Add report failed build job
  • Loading branch information
jadecarino authored Sep 30, 2024
2 parents 4692277 + baa7885 commit aab7e2c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,17 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GALASA_TEAM_GITHUB_TOKEN }}

report-failure:
name: Report failure in workflow
runs-on: ubuntu-latest
needs: trigger-workflow
if: failure()

steps:
- name: Report failure in workflow to Slack
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
run : |
docker run --rm -v ${{ github.workspace }}:/var/workspace ghcr.io/galasa-dev/galasabld-ibm:main slackpost workflows --repo "helm" --workflowName "${{ github.workflow }}" --workflowRunNum "${{ github.run_id }}" --ref "${{ env.BRANCH }}" --hook "${{ env.SLACK_WEBHOOK }}"

0 comments on commit aab7e2c

Please sign in to comment.