From 9f874618d26a1f086cb8a1ab8874c19de70cfeb0 Mon Sep 17 00:00:00 2001 From: Luchi Date: Tue, 18 Jan 2022 14:54:54 +0200 Subject: (MODULES-11073) Improve Slack notifications for dispatched GHA --- .../dispatch_unit_tests_with_nightly_puppet_gem.yaml | 12 ++++++++++-- 1 file 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' + -- cgit v1.2.3