diff --git a/.github/workflows/slack.yml b/.github/workflows/slack.yml index 49ae1b2..3198a29 100644 --- a/.github/workflows/slack.yml +++ b/.github/workflows/slack.yml @@ -1,7 +1,7 @@ name: Slack on: workflow_run: - workflows: [CI, Alert] + workflows: [CI] types: [completed] branches: [main] jobs: diff --git a/.github/workflows/snitch.yml b/.github/workflows/snitch.yml new file mode 100644 index 0000000..b18b9a3 --- /dev/null +++ b/.github/workflows/snitch.yml @@ -0,0 +1,13 @@ +name: Dead Man's Snitch +on: + workflow_run: + workflows: [Alert] + types: [completed] + branches: [main] +jobs: + on-success: + runs-on: ubuntu-latest + if: ${{ github.event.workflow_run.conclusion == 'success' }} + steps: + - name: Check in with Dead Man's Snitch + run: curl https://nosnch.in/${{ secrets.SNITCH_ID }}