We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 367199c commit f0106ccCopy full SHA for f0106cc
.github/workflows/dev.kodemy.deploy.yml
@@ -196,9 +196,18 @@ jobs:
196
- name: Determine new tag
197
id: tag
198
run: |
199
- new_tag="${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}"
200
- echo "New tag: $new_tag"
+ tags=$(git tag -l)
+ latest_tag=$(echo "$tags" | grep -E '^0\.0\.[0-9]+$' | sort -V | tail -n 1)
201
202
+ if [ -n "$latest_tag" ]; then
203
+ version_number=$(echo "$latest_tag" | sed 's/^0\.0\.//')
204
+ new_version=$((version_number + 1))
205
+ new_tag="0.0.$new_version"
206
+ else
207
+ new_tag="0.0.1"
208
+ fi
209
+
210
+ echo "New tag: $new_tag"
211
echo "TAG_NAME=$new_tag" >> $GITHUB_ENV
212
213
- name: Create tag
0 commit comments