build: test workflow dispatch
This commit is contained in:
parent
27607eb867
commit
864a130df4
28
.gitea/workflows/bump-push.yml
Normal file
28
.gitea/workflows/bump-push.yml
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
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 }}."
|
Loading…
Reference in New Issue
Block a user