diff --git a/.github/workflows/bump-tag.yml b/.github/workflows/bump-tag.yml new file mode 100644 index 0000000..a9de353 --- /dev/null +++ b/.github/workflows/bump-tag.yml @@ -0,0 +1,26 @@ +name: Bump version +on: + pull_request: + types: + - closed + branches: + - main + paths: + - docs/** + +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@v1.71.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}