Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d4a0203bd8 |
@@ -17,15 +17,19 @@ jobs:
|
||||
with:
|
||||
go-version: '1.26'
|
||||
|
||||
- name: Install just
|
||||
run: |
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash
|
||||
|
||||
- name: Test & Build
|
||||
run: |
|
||||
just vet test
|
||||
just build-linux-amd64
|
||||
/bin/gitbump_linux_amd64 --version
|
||||
/root/bin/just vet test
|
||||
/root/bin/just build-linux-amd64
|
||||
./bin/gitbump_linux_amd64 --version
|
||||
|
||||
build:
|
||||
runs-on: [ubuntu-latest, amd64]
|
||||
needs: test-build
|
||||
needs: test
|
||||
if: github.ref == 'refs/heads/master'
|
||||
permissions:
|
||||
contents: write
|
||||
@@ -44,17 +48,16 @@ jobs:
|
||||
run: go run main.go
|
||||
|
||||
notify-failure:
|
||||
runs-on: go-executor
|
||||
runs-on: [ubuntu-latest, amd64]
|
||||
needs: [test, build]
|
||||
if: always() && contains(needs.*.result, 'failure')
|
||||
if: always() && (contains(needs.*.result, 'failure') || contains(needs.*.result, 'skipped'))
|
||||
steps:
|
||||
- name: ntfy-failed-notifications
|
||||
uses: niniyas/ntfy-action@master
|
||||
with:
|
||||
url: 'https://ntfy.zlymeda.dynu.net'
|
||||
topic: ${{ secrets.NTFY_TOPIC || 'errors' }}
|
||||
url: ${{ secrets.NTFY_URL }}
|
||||
topic: ${{ secrets.NTFY_TOPIC }}
|
||||
priority: 5
|
||||
tags: flying_saucer,warning,🚨,🛠️,action,failed
|
||||
details: Workflow has failed!
|
||||
actions: 'default'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user