Skip to content

Commit

Permalink
fix: #dev-deploy tag fix 11
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinbator authored Dec 3, 2024
1 parent be6d587 commit 207931b
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions .github/workflows/dev.kodemy.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
# });


0 comments on commit 207931b

Please sign in to comment.