From b5fffe831f42061fdd80e4421d7dc9da99a408d4 Mon Sep 17 00:00:00 2001 From: Gleb Tcivie Date: Sat, 20 Jul 2024 17:30:06 +0300 Subject: [PATCH] Update auto-tagging.yml --- .github/workflows/auto-tagging.yml | 32 +++++++++++++++++++----------- 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/.github/workflows/auto-tagging.yml b/.github/workflows/auto-tagging.yml index 39759de..00b730a 100644 --- a/.github/workflows/auto-tagging.yml +++ b/.github/workflows/auto-tagging.yml @@ -1,18 +1,26 @@ -name: Auto Tagger - +name: Bump version on: - push: + pull_request: + types: + - closed branches: - - main + - master jobs: - auto-tag: - runs-on: ubuntu-latest + build: + if: github.event.pull_request.merged == true + runs-on: ubuntu-22.04 + permissions: + contents: write steps: - - name: Checkout code - uses: actions/checkout@v3 - with: - fetch-depth: 0 + - uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.merge_commit_sha }} + fetch-depth: '0' - - name: Github PR Auto Tagger - uses: RueLaLa/auto-tagger@v2.1.3 + - name: Bump version and push tag + uses: anothrNick/github-tag-action@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + WITH_V: true + PRERELEASE: true