diff --git a/.github/workflows/fmt:check.yml b/.github/workflows/fmt-check.yml similarity index 100% rename from .github/workflows/fmt:check.yml rename to .github/workflows/fmt-check.yml diff --git a/.github/workflows/scan:trivy.yml b/.github/workflows/scan-trivy.yml similarity index 100% rename from .github/workflows/scan:trivy.yml rename to .github/workflows/scan-trivy.yml diff --git a/.github/workflows/tag-bump.yml b/.github/workflows/tag-bump.yml new file mode 100644 index 0000000..41909df --- /dev/null +++ b/.github/workflows/tag-bump.yml @@ -0,0 +1,25 @@ +name: Bump version +on: + pull_request: + types: + - closed + branches: + - main + +jobs: + build: + if: github.event.pull_request.merged == true + runs-on: ubuntu-22.04 + permissions: + contents: write + steps: + - uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.merge_commit_sha }} + fetch-depth: '0' + + - name: Bump version and push tag + uses: anothrNick/github-tag-action@1.75.0 + env: + TAG_PREFIX: 'v' + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}