Skip to content

Commit

Permalink
fix(ci): check-advisories cache miss breaks due to step call workflow…
Browse files Browse the repository at this point in the history
… call
  • Loading branch information
blackheaven authored and frasertweedale committed Nov 7, 2023
1 parent 6433a80 commit 12b0e15
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/call-check-advisories.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,12 @@ on:
type: string
default: '[]'
jobs:
populate_cache:
name: Check nix build
uses: ./.github/workflows/call-nix.yml
check-advisories:
runs-on: ubuntu-20.04
needs: populate_cache
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -33,15 +37,6 @@ jobs:
id: fetch-binaries
if: ${{ !inputs.is-artifact }}
uses: actions/cache/restore@v3
with:
key: ${{ inputs.fetch-key }}
path: ~/.local/dockerImages
- name: Populate cache on cache miss
if: ${{ !inputs.is-artifact && steps.fetch-binaries.outputs.cache-hit != 'true' }}
uses: ./.github/workflows/call-nix.yml
- name: Fetch cache (second attempt after cache miss)
if: ${{ !inputs.is-artifact && steps.fetch-binaries.outputs.cache-hit != 'true' }}
uses: actions/cache/restore@v3
with:
key: ${{ inputs.fetch-key }}
path: ~/.local/dockerImages
Expand Down

0 comments on commit 12b0e15

Please sign in to comment.