Notify Slack when GHA Runs (#396)

* Notify Slack when GHA Runs

* Only notify in case of failure
This commit is contained in:
Luca Guidi 2022-02-02 09:21:44 +01:00 committed by GitHub
parent b3ffc9c9bf
commit 100c5d5486
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -27,6 +27,13 @@ jobs:
- "3.1"
- "3.0"
steps:
- uses: ravsamhq/notify-slack-action@v1
if: always()
with:
status: ${{ job.status }}
notify_when: "failure"
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
- uses: actions/checkout@v1
- name: Install package dependencies
run: "[ -e $APT_DEPS ] || sudo apt-get install -y --no-install-recommends $APT_DEPS"