From ce3bc2ede3a2ef6a04c910c1687561b388fe5819 Mon Sep 17 00:00:00 2001 From: Mitch Dawson <86007219+mitchdawson1982@users.noreply.github.com> Date: Tue, 6 Aug 2024 12:00:48 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20Deployment=20Notifications=20(#6?= =?UTF-8?q?28)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * add initial success flow * add output of available events --- .github/workflows/notify-slack-on-failure.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/notify-slack-on-failure.yml b/.github/workflows/notify-slack-on-failure.yml index 187acb5f..557c0e0b 100644 --- a/.github/workflows/notify-slack-on-failure.yml +++ b/.github/workflows/notify-slack-on-failure.yml @@ -23,3 +23,10 @@ jobs: footer: "Linked Repo <${{github.server_url}}/${{github.repository}}|${{github.repository}}> | <${{github.server_url}}/${{github.repository}}/actions/runs/${{github.event.workflow_run.id}}|View Failure>" env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_ALERT_WEBHOOK }} + + on-success: + runs-on: ubuntu-latest + if: github.event.workflow_run.conclusion == 'success' + steps: + - run: ${{ tojson(github.event) }} + shell: cat {0}