From 2b89e5289db3b677514f94233af32a55f9f9d3f1 Mon Sep 17 00:00:00 2001 From: Emad Mokhtar Date: Sun, 28 Apr 2024 15:12:29 +0200 Subject: [PATCH] V2/semver action 2 (#111) * Create git tab based on PR label --- .github/workflows/ci.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ecda1e9..da5b525 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -71,14 +71,13 @@ jobs: uses: robherley/go-test-action@v0 new-version: - name: Bump tag version (semver) runs-on: ubuntu-latest + if: github.event.pull_request.merged steps: - - uses: 1k-off/action-semver-tag-release@1.0.1 - name: Bump version and push tag - id: tag - with: - version: latest - github_token: ${{ secrets.GITHUB_TOKEN }} - - name: Echo the new tag - run: echo "The new tag is ${{ steps.tag.outputs.tag }}" + - name: Tag + uses: K-Phoen/semver-release-action@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Echo new tag + run: | + echo "New tag is ${{ steps.tag.outputs.tag }}"