1
0
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:
ckyrouac
2025-07-28 11:27:22 -04:00
parent f4b01ab08c
commit f15a65a528

View File

@@ -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