aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuchian Nemes <luchian.nemes@puppet.com>2020-10-29 09:41:04 +0200
committerLuchian Nemes <luchian.nemes@puppet.com>2020-10-29 15:06:05 +0200
commitd1c690d556350521eb6fdd3a2411c5d6c721278f (patch)
treef6a569c3b604f67a32f058b68b9efcfca6e49922
parent4e5069ee7b7047df39067e8a124e11b03d8a7a23 (diff)
downloadpuppet-augeas_core-d1c690d556350521eb6fdd3a2411c5d6c721278f.tar.gz
puppet-augeas_core-d1c690d556350521eb6fdd3a2411c5d6c721278f.tar.bz2
(MODULES-10815) Add Slack notification job
This commit adds a job to the `[Daily] Unit Tests with nightly Puppet gem` workflow that notifies us the conclusion of it via Slack.
-rw-r--r--.github/workflows/daily_unit_tests_with_nightly_puppet_gem.yaml11
1 files changed, 11 insertions, 0 deletions
diff --git a/.github/workflows/daily_unit_tests_with_nightly_puppet_gem.yaml b/.github/workflows/daily_unit_tests_with_nightly_puppet_gem.yaml
index bf07dc5..16d4500 100644
--- a/.github/workflows/daily_unit_tests_with_nightly_puppet_gem.yaml
+++ b/.github/workflows/daily_unit_tests_with_nightly_puppet_gem.yaml
@@ -56,3 +56,14 @@ jobs:
- name: Run unit tests
run: bundle exec rake parallel_spec
+
+ notify-via-slack:
+ name: Notify workflow conclusion via Slack
+ if: ${{ always() }}
+ needs: daily_unit_tests_with_nightly_puppet_gem
+ runs-on: 'ubuntu-latest'
+ steps:
+ - uses: luchihoratiu/notify-via-slack@main
+ with:
+ SLACK_CHANNEL: ${{ secrets.SLACK_CHANNEL }}
+ SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}