aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuchi <luchihoratiu@gmail.com>2022-01-18 14:54:54 +0200
committerLuchi <luchihoratiu@gmail.com>2022-01-18 17:52:53 +0200
commit9f874618d26a1f086cb8a1ab8874c19de70cfeb0 (patch)
tree6a4a4d1336963296ba81b98ae8b48c0920f706c4
parent63935009da4262746ed9fc704fe84b823f77fdd2 (diff)
downloadpuppet-sshkeys_core-9f874618d26a1f086cb8a1ab8874c19de70cfeb0.tar.gz
puppet-sshkeys_core-9f874618d26a1f086cb8a1ab8874c19de70cfeb0.tar.bz2
(MODULES-11073) Improve Slack notifications for dispatched GHA
-rw-r--r--.github/workflows/dispatch_unit_tests_with_nightly_puppet_gem.yaml12
1 files changed, 10 insertions, 2 deletions
diff --git a/.github/workflows/dispatch_unit_tests_with_nightly_puppet_gem.yaml b/.github/workflows/dispatch_unit_tests_with_nightly_puppet_gem.yaml
index 65de6c1..ddcc3ed 100644
--- a/.github/workflows/dispatch_unit_tests_with_nightly_puppet_gem.yaml
+++ b/.github/workflows/dispatch_unit_tests_with_nightly_puppet_gem.yaml
@@ -130,10 +130,18 @@ jobs:
notify-via-slack:
name: Notify workflow conclusion via Slack
if: ${{ always() }}
- needs: unit_tests_with_nightly_puppet_gem
+ needs: [set_output_data, unit_tests_with_nightly_puppet_gem]
runs-on: 'ubuntu-latest'
steps:
- - uses: luchihoratiu/notify-via-slack@main
+ - uses: luchihoratiu/notify-via-slack@v1.0.0
with:
SLACK_CHANNEL: ${{ secrets.SLACK_CHANNEL }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
+ NOTIFY_ONLY_ON_CONCLUSION_CHANGE: 'true'
+ EXTRA_INFORMATION: ':github_actions: Run number: ${{ github.run_id }} \n
+ :puppet: Puppet Agent SHA: ${{ github.event.inputs.pa_ref }} \n
+ :puppet: Puppet SHA: ${{ needs.set_output_data.outputs.puppet_sha }} \n
+ :puppet: Puppet Short Commit: ${{ needs.set_output_data.outputs.puppet_short_commit }} \n
+ :puppet: Puppet Version: ${{ needs.set_output_data.outputs.puppet_version }} \n
+ :ruby: Ruby Version: ${{ needs.set_output_data.outputs.ruby_version }} \n'
+