Skip to content
This repository was archived by the owner on Sep 19, 2025. It is now read-only.

Commit a48ac2f

Browse files
[skip ci] Only create a release when a new version is found
1 parent 69d6ed4 commit a48ac2f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,12 @@ jobs:
5454
if: ${{ github.event.inputs.COMPILER_VERSION_NUMBER != '' }}
5555
run: |
5656
echo "COMPILER_VERSION_NUMBER=${{ github.event.inputs.COMPILER_VERSION_NUMBER }}" >> "$GITHUB_ENV"
57-
- name: Ensure compiler version defined
58-
if: ${{ env.COMPILER_VERSION_NUMBER == '' }}
59-
run: |
60-
gh run cancel ${{ github.run_id }}
61-
gh run watch ${{ github.run_id }}
6257
- name: Set compiler submodule to provided release branch
58+
if: ${{ env.COMPILER_VERSION_NUMBER != '' }}
6359
working-directory: compiler
6460
run: git checkout v${{ env.COMPILER_VERSION_NUMBER }}
6561
- name: Create release commit and tag
62+
if: ${{ env.COMPILER_VERSION_NUMBER != '' }}
6663
run: |
6764
git config --global user.email "[email protected]"
6865
git config --global user.name "Github Bot"
@@ -71,6 +68,7 @@ jobs:
7168
git push origin master
7269
git push origin v${{ env.COMPILER_VERSION_NUMBER }}.0.0
7370
- name: Create GitHub Release
71+
if: ${{ env.COMPILER_VERSION_NUMBER != '' }}
7472
run: |
7573
curl \
7674
-X POST \

0 commit comments

Comments
 (0)