From 864a130df441c7a5308b7613132e68560b8806dd Mon Sep 17 00:00:00 2001 From: xuu Date: Sat, 30 Sep 2023 19:57:17 -0600 Subject: [PATCH] build: test workflow dispatch --- .gitea/workflows/bump-push.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .gitea/workflows/bump-push.yml diff --git a/.gitea/workflows/bump-push.yml b/.gitea/workflows/bump-push.yml new file mode 100644 index 0000000..08b25dc --- /dev/null +++ b/.gitea/workflows/bump-push.yml @@ -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 }}."