Skip to content

Commit 3809961

Browse files
authored
Merge pull request #63 from puppetlabs/MODULES-11073/improve_notifications
(MODULES-11073) Improve Slack notifications for dispatched GHA
2 parents 6393500 + 9f87461 commit 3809961

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/dispatch_unit_tests_with_nightly_puppet_gem.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,18 @@ jobs:
130130
notify-via-slack:
131131
name: Notify workflow conclusion via Slack
132132
if: ${{ always() }}
133-
needs: unit_tests_with_nightly_puppet_gem
133+
needs: [set_output_data, unit_tests_with_nightly_puppet_gem]
134134
runs-on: 'ubuntu-latest'
135135
steps:
136-
- uses: luchihoratiu/notify-via-slack@main
136+
- uses: luchihoratiu/notify-via-slack@v1.0.0
137137
with:
138138
SLACK_CHANNEL: ${{ secrets.SLACK_CHANNEL }}
139139
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
140+
NOTIFY_ONLY_ON_CONCLUSION_CHANGE: 'true'
141+
EXTRA_INFORMATION: ':github_actions: Run number: ${{ github.run_id }} \n
142+
:puppet: Puppet Agent SHA: ${{ github.event.inputs.pa_ref }} \n
143+
:puppet: Puppet SHA: ${{ needs.set_output_data.outputs.puppet_sha }} \n
144+
:puppet: Puppet Short Commit: ${{ needs.set_output_data.outputs.puppet_short_commit }} \n
145+
:puppet: Puppet Version: ${{ needs.set_output_data.outputs.puppet_version }} \n
146+
:ruby: Ruby Version: ${{ needs.set_output_data.outputs.ruby_version }} \n'
147+

0 commit comments

Comments
 (0)