[skip ci] Won't create 'r...' tag if building development version

This commit is contained in:
Cuong Tran 2024-05-14 19:58:30 +07:00
parent 48fb4a2e60
commit b3dcf85dc6
No known key found for this signature in database
GPG key ID: 733AA7624B9315C2

View file

@ -42,6 +42,7 @@ jobs:
echo "COMMIT_COUNT=$commit_count" >> $GITHUB_OUTPUT
- name: Create Tag 'r${{ steps.prepare_build.outputs.COMMIT_COUNT }}'
if: ${{ github.ref }} == "refs/heads/master"
run: |
git tag "r${{ steps.prepare_build.outputs.COMMIT_COUNT }}"
git push origin "r${{ steps.prepare_build.outputs.COMMIT_COUNT }}"
@ -49,7 +50,7 @@ jobs:
- name: Get branch names
id: branch_names
uses: tj-actions/branch-names@v8
- name: Invoke workflow in preview repo
uses: benc-uk/workflow-dispatch@v1
with: