Skip to content

Commit

Permalink
ghactions: Skip yocto-check-layer step instead of job
Browse files Browse the repository at this point in the history
Skipping the job means the publish job doesn't run and the images don't
get pushed to the container registry. Skip the step to run the script
instead
  • Loading branch information
JoshuaWatt committed Oct 6, 2023
1 parent 5013e6a commit acce65c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,6 @@ jobs:
./meta-bitbake-hashserver/scripts/validate-layer-json.py
yocto-check-layer:
# Don't run this on tag pushes
if: github.event_name != 'push' || ! startsWith(github.ref, 'refs/tags/')
needs:
- create-layer-cache

Expand Down Expand Up @@ -143,6 +141,10 @@ jobs:
yocto-check-layers-
- name: Run yocto-check-layer
id: run-yocto-check-layer
# Don't run this on tag pushes. This step is skipped as opposed to the
# entire job so that dependent jobs will still run
if: github.event_name != 'push' || ! startsWith(github.ref, 'refs/tags/')
run: |
. ./core/oe-init-build-env
Expand All @@ -159,7 +161,7 @@ jobs:
$MACHINE
- name: Save yocto-check-layers cache
if: steps.restore-yocto-check-layers-cache.outputs.cache-hit != 'true'
if: steps.restore-yocto-check-layers-cache.outputs.cache-hit != 'true' && steps.run-yocto-check-layer.outcome == 'success'
uses: actions/cache/save@v3
with:
path: |
Expand Down

0 comments on commit acce65c

Please sign in to comment.