aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Nagy <gabriel.nagy@puppet.com>2022-01-18 18:00:45 +0200
committerGitHub <noreply@github.com>2022-01-18 18:00:45 +0200
commit3809961dc46c3726899427867afe1a5b002c7037 (patch)
tree6a4a4d1336963296ba81b98ae8b48c0920f706c4
parent63935009da4262746ed9fc704fe84b823f77fdd2 (diff)
parent9f874618d26a1f086cb8a1ab8874c19de70cfeb0 (diff)
downloadpuppet-sshkeys_core-3809961dc46c3726899427867afe1a5b002c7037.tar.gz
puppet-sshkeys_core-3809961dc46c3726899427867afe1a5b002c7037.tar.bz2
Merge pull request #63 from puppetlabs/MODULES-11073/improve_notifications
(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'
+