From 207931b5e6f1f8785bb44024e325d13d617a3c03 Mon Sep 17 00:00:00 2001 From: Marcin Bator Date: Tue, 3 Dec 2024 18:26:59 +0100 Subject: [PATCH] fix: #dev-deploy tag fix 11 --- .github/workflows/dev.kodemy.deploy.yml | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/.github/workflows/dev.kodemy.deploy.yml b/.github/workflows/dev.kodemy.deploy.yml index 638eb3d..4e3b549 100644 --- a/.github/workflows/dev.kodemy.deploy.yml +++ b/.github/workflows/dev.kodemy.deploy.yml @@ -195,10 +195,7 @@ jobs: - name: Determine new tag id: tag run: | - last_tag=$(git describe --tags --abbrev=0 2>/dev/null || echo "v0.0.0") - echo "Last tag: $last_tag" - - new_tag=$(echo $last_tag | awk -F. '{printf "v%d.%d.%d", $1, $2+1, 0}') + new_tag="${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}" echo "New tag: $new_tag" echo "TAG_NAME=$new_tag" >> $GITHUB_ENV @@ -217,15 +214,5 @@ jobs: git tag $TAG_NAME git push origin --tags - # uses: actions/github-script@v5 - # script: | - # github.rest.git.createRef({ - # owner: context.repo.owner, - # repo: context.repo.repo, - # ref: `refs/tags/${{ env.TAG_NAME }}`, - # sha: context.sha - # }); - -