]> gitweb.fluxo.info Git - puppet-sshkeys_core.git/commitdiff
(MODULES-11073) Improve Slack notifications for dispatched GHA
authorLuchi <luchihoratiu@gmail.com>
Tue, 18 Jan 2022 12:54:54 +0000 (14:54 +0200)
committerLuchi <luchihoratiu@gmail.com>
Tue, 18 Jan 2022 15:52:53 +0000 (17:52 +0200)
.github/workflows/dispatch_unit_tests_with_nightly_puppet_gem.yaml

index 65de6c1baf8959a5818976270f400a4cbcfe4837..ddcc3edc6a4dae7dde378daff2e7ebd8a0fc8b5a 100644 (file)
@@ -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'
+