From 149da8c2c8cf9910b0311a1d624ad8e97cdecd64 Mon Sep 17 00:00:00 2001 From: Daniel Churm Date: Wed, 1 May 2024 10:38:41 +0100 Subject: [PATCH] Fix auto tag action --- .github/workflows/auto-tag-main.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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