aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuchian Nemes <luchian.nemes@puppet.com>2020-10-29 09:45:33 +0200
committerLuchian Nemes <luchian.nemes@puppet.com>2020-10-29 15:07:17 +0200
commit23eaeeff6885186e490a7eb934a6c88d03d2fee9 (patch)
treed19eb2ab566056c3ea23b3230fbabd90316b351a
parent8f65c914013315d3b8f5c3b1b68d31d154dc1966 (diff)
downloadpuppet-hosts_core-23eaeeff6885186e490a7eb934a6c88d03d2fee9.tar.gz
puppet-hosts_core-23eaeeff6885186e490a7eb934a6c88d03d2fee9.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 }}