Skip to content

Commit

Permalink
WIP: GHA Ntfy
Browse files Browse the repository at this point in the history
  • Loading branch information
cdzombak committed Oct 24, 2023
1 parent a117ac6 commit 60f7c1e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -228,11 +228,11 @@ jobs:
name: Ntfy
if: ${{ !cancelled() }}
runs-on: ubuntu-latest
needs: meta
needs: [meta, lint, binaries, release, aptly]
steps:
- name: Send success notification
uses: niniyas/ntfy-action@master
if: ${{ success() && (needs.meta.outputs.is_release == 'true' || needs.meta.outputs.is_prerelease == 'true') }}
if: ${{ !contains(needs.*.result, 'failure') && (needs.meta.outputs.is_release == 'true' || needs.meta.outputs.is_prerelease == 'true') }}
with:
url: 'https://ntfy.cdzombak.net'
topic: 'gha-builds'
Expand All @@ -243,7 +243,7 @@ jobs:
details: ${{ github.event.repository.name }} version ${{ needs.meta.outputs.bin_version }} is now available.
- name: Send failure notification
uses: niniyas/ntfy-action@master
if: ${{ failure() }}
if: ${{ contains(needs.*.result, 'failure') }}
with:
url: 'https://ntfy.cdzombak.net'
topic: 'gha-builds'
Expand Down

0 comments on commit 60f7c1e

Please sign in to comment.