mirror of
https://github.com/containers/bootc.git
synced 2026-02-05 06:45:13 +01:00
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 <ckyrouac@redhat.com>
This commit is contained in:
7
.github/workflows/scheduled-release.yml
vendored
7
.github/workflows/scheduled-release.yml
vendored
@@ -28,9 +28,6 @@ jobs:
|
||||
fetch-depth: 0
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Install deps
|
||||
run: ./ci/installdeps.sh
|
||||
|
||||
- name: Mark git checkout as safe
|
||||
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
||||
|
||||
@@ -58,6 +55,10 @@ jobs:
|
||||
echo "should_release=false" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
|
||||
- name: Install deps
|
||||
if: steps.check_schedule.outputs.should_release == 'true'
|
||||
run: ./ci/installdeps.sh
|
||||
|
||||
- name: Import GPG key
|
||||
if: steps.check_schedule.outputs.should_release == 'true'
|
||||
uses: crazy-max/ghaction-import-gpg@v6
|
||||
|
||||
Reference in New Issue
Block a user