]> gitweb.fluxo.info Git - puppet-sshkeys_core.git/commitdiff
(MODULES-10815) Add Slack notification job
authorLuchian Nemes <luchian.nemes@puppet.com>
Thu, 29 Oct 2020 07:49:51 +0000 (09:49 +0200)
committerLuchian Nemes <luchian.nemes@puppet.com>
Thu, 29 Oct 2020 13:08:31 +0000 (15:08 +0200)
This commit adds a job to the `[Daily] Unit Tests with nightly Puppet
gem` workflow that notifies us the conclusion of it via Slack.

.github/workflows/daily_unit_tests_with_nightly_puppet_gem.yaml

index bf07dc51c52cef28d60c5da6944279c2ba5e671d..16d4500f657251c8677db3ece38936600abede34 100644 (file)
@@ -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 }}