Notify once per workflow run, failures always and successes on master, so every repo reports the same way
This commit is contained in:
commit
56859d4d1b
2 files changed
+95
No files matched your search
@@ -0,0 +1,22 @@
|
||||
# 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.
|
||||
|
||||
```yaml
|
||||
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.
|
||||
Reference in new issue
Block a user