[skip ci] Won't create 'r...' tag if building development version
This commit is contained in:
parent
48fb4a2e60
commit
b3dcf85dc6
1 changed files with 2 additions and 1 deletions
3
.github/workflows/build_push_preview.yml
vendored
3
.github/workflows/build_push_preview.yml
vendored
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue