Files
ci-notify/README.md
T

737 B

ci-notify

One ntfy notification per workflow run. Add it as the last job, needing every other job: a failed job posts to errors (priority 5), and a run where everything passed on master posts to gitea-releases. Each notification links to the run. Other branches only report failures, so a feature branch push stays quiet.

  notify:
    needs: [test, build-master, deploy-master]
    if: always()
    runs-on: go-executor
    steps:
      - uses: https://lab.zlymeda.dynu.net/actions/ci-notify@master
        with:
          needs: ${{ toJSON(needs) }}
          ntfy_token: ${{ secrets.NTFY_TOKEN }}

success_branches widens what is announced (e.g. master develop), and the topics and tokens can be overridden.