go-tools/.gitea/workflows/bump-push.yml
xuu 864a130df4
All checks were successful
Go Bump / bump (push) Successful in 36s
Go Test / test (push) Successful in 48s
build: test workflow dispatch
2023-09-30 20:10:30 -06:00

29 lines
590 B
YAML

name: Go Bump
on:
push:
branches: [ "main" ]
jobs:
bump:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
fetch-tags: true
- run: echo stable=${{ inputs.STABLE }} pre=${{ inputs.BETA }}
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.21.1
- run: go install github.com/psanetra/git-semver/cli@master
- run: git tag v$(cli next --stable=false --pre-release-counter)
- run: git push --tags
- run: echo "🍏 This job's status is ${{ job.status }}."