Skip to content

Commit 242e442

Browse files
committed
fix: rearrange steps
1 parent 7ec64b9 commit 242e442

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

shared-actions/create-release/action.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,6 @@ inputs:
1616
runs:
1717
using: composite
1818
steps:
19-
- name: Set up GitHub CLI
20-
if: steps.check_version.outputs.should_release == 'true'
21-
shell: bash
22-
run: |
23-
sudo apt update
24-
sudo apt install gh -y
25-
gh --version
26-
2719
- name: Read version from spec file
2820
shell: bash
2921
id: read_version
@@ -104,6 +96,14 @@ runs:
10496
echo "should_release=true" >> $GITHUB_OUTPUT
10597
echo "✅ Version validation passed: $PREVIOUS_TAG → $SPEC_VERSION"
10698
99+
- name: Set up GitHub CLI
100+
if: steps.check_version.outputs.should_release == 'true'
101+
shell: bash
102+
run: |
103+
sudo apt update
104+
sudo apt install gh -y
105+
gh --version
106+
107107
- name: Generate changelog
108108
shell: bash
109109
id: changelog

0 commit comments

Comments
 (0)