Files
gitbump/.gitea/workflows/build.yml
Ondrej Belusky 4f46101d4c
Some checks failed
Gitbump CI / test (push) Failing after 51s
Gitbump CI / build (push) Successful in 10s
Gitbump CI / notify-failure (push) Has been skipped
move to gitea actions
2026-02-12 12:52:34 +01:00

61 lines
1.3 KiB
YAML

name: Gitbump CI
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
test:
runs-on: [ubuntu-latest, amd64]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.26'
- name: Test & Build
run: |
just vet test
just build-linux-amd64
/bin/gitbump_linux_amd64 --version
build:
runs-on: [ubuntu-latest, amd64]
needs: test-build
if: github.ref == 'refs/heads/master'
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: true
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.26'
- name: Bump & Tag
run: go run main.go
notify-failure:
runs-on: go-executor
needs: [test, build]
if: always() && contains(needs.*.result, 'failure')
steps:
- name: ntfy-failed-notifications
uses: niniyas/ntfy-action@master
with:
url: 'https://ntfy.zlymeda.dynu.net'
topic: ${{ secrets.NTFY_TOPIC || 'errors' }}
priority: 5
tags: flying_saucer,warning,🚨,🛠️,action,failed
details: Workflow has failed!
actions: 'default'