diff --git a/.github/workflows/auto-tag-main.yml b/.github/workflows/auto-tag-main.yml index 51db046..00a61ad 100644 --- a/.github/workflows/auto-tag-main.yml +++ b/.github/workflows/auto-tag-main.yml @@ -5,16 +5,23 @@ on: - closed branches: - main + jobs: build: + if: github.event.pull_request.merged == true runs-on: ubuntu-22.04 + permissions: + contents: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: - fetch-depth: "0" + ref: ${{ github.event.pull_request.merge_commit_sha }} + fetch-depth: '0' + - name: Bump version and push tag uses: anothrNick/github-tag-action@1.67.0 env: DEFAULT_BUMP: patch GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - WITH_V: true \ No newline at end of file + WITH_V: true + PRERELEASE: true \ No newline at end of file