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

Commit 7486f31

Browse files
[skip ci] correct workflow logic to checkout tagged compiler commit
1 parent 785d923 commit 7486f31

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,22 +46,22 @@ jobs:
4646
working-directory: compiler
4747
run: git fetch --tags https://github.com/google/closure-compiler.git
4848
- name: Find compiler submodule newer release tag
49-
id: version-number
5049
if: ${{ github.event.inputs.COMPILER_VERSION_NUMBER == '' }}
5150
run: |
5251
echo "COMPILER_VERSION_NUMBER=$(./build-scripts/checkout-newer-version-tag.js)" >> "$GITHUB_ENV"
5352
echo "COMPILER_VERSION_NUMBER='$COMPILER_VERSION_NUMBER'" >> "$GITHUB_OUTPUT"
54-
- name: Set compiler submodule to provided release branch
53+
- name: Set compiler version to provided value
5554
if: ${{ github.event.inputs.COMPILER_VERSION_NUMBER != '' }}
56-
working-directory: compiler
5755
run: |
58-
git checkout v${{ github.event.inputs.COMPILER_VERSION_NUMBER }}
5956
echo "COMPILER_VERSION_NUMBER='${{ github.event.inputs.COMPILER_VERSION_NUMBER }}'" >> "$GITHUB_ENV"
6057
- name: Ensure compiler version defined
6158
if: ${{ env.COMPILER_VERSION_NUMBER == '' }}
6259
run: |
6360
gh run cancel ${{ github.run_id }}
6461
gh run watch ${{ github.run_id }}
62+
- name: Set compiler submodule to provided release branch
63+
working-directory: compiler
64+
run: git checkout v${{ env.COMPILER_VERSION_NUMBER }}
6565
- name: Create release commit and tag
6666
run: |
6767
git config --global user.email "[email protected]"

0 commit comments

Comments
 (0)