Skip to content

Commit f15a65a

Browse files
committed
ci: Check if it's time for release earlier in gh action
Just a small optimization to avoid installing deps when it's not time for a release. Signed-off-by: ckyrouac <[email protected]>
1 parent f4b01ab commit f15a65a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/scheduled-release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ jobs:
2828
fetch-depth: 0
2929
token: ${{ secrets.GITHUB_TOKEN }}
3030

31-
- name: Install deps
32-
run: ./ci/installdeps.sh
33-
3431
- name: Mark git checkout as safe
3532
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
3633

@@ -58,6 +55,10 @@ jobs:
5855
echo "should_release=false" >> $GITHUB_OUTPUT
5956
fi
6057
58+
- name: Install deps
59+
if: steps.check_schedule.outputs.should_release == 'true'
60+
run: ./ci/installdeps.sh
61+
6162
- name: Import GPG key
6263
if: steps.check_schedule.outputs.should_release == 'true'
6364
uses: crazy-max/ghaction-import-gpg@v6

0 commit comments

Comments
 (0)