Skip to content

Commit 207931b

Browse files
authored
fix: #dev-deploy tag fix 11
1 parent be6d587 commit 207931b

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

.github/workflows/dev.kodemy.deploy.yml

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,7 @@ jobs:
195195
- name: Determine new tag
196196
id: tag
197197
run: |
198-
last_tag=$(git describe --tags --abbrev=0 2>/dev/null || echo "v0.0.0")
199-
echo "Last tag: $last_tag"
200-
201-
new_tag=$(echo $last_tag | awk -F. '{printf "v%d.%d.%d", $1, $2+1, 0}')
198+
new_tag="${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}"
202199
echo "New tag: $new_tag"
203200
204201
echo "TAG_NAME=$new_tag" >> $GITHUB_ENV
@@ -217,15 +214,5 @@ jobs:
217214
git tag $TAG_NAME
218215
git push origin --tags
219216
220-
# uses: actions/github-script@v5
221-
# script: |
222-
# github.rest.git.createRef({
223-
# owner: context.repo.owner,
224-
# repo: context.repo.repo,
225-
# ref: `refs/tags/${{ env.TAG_NAME }}`,
226-
# sha: context.sha
227-
# });
228-
229-
230217
231218

0 commit comments

Comments
 (0)