Files
gitbump/.gitea/workflows/build.yml
T
meda f7aeaaca5c
Gitbump CI / test (push) Successful in 45s
Gitbump CI / build (push) Successful in 33s
Gitbump CI / notify-failure (push) Has been skipped
chore(deps): update all deps to v7
2026-06-19 00:03:17 +00:00

64 lines
1.5 KiB
YAML

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