Skip to content

Commit 12b0e15

Browse files
blackheavenfrasertweedale
authored andcommitted
fix(ci): check-advisories cache miss breaks due to step call workflow call
1 parent 6433a80 commit 12b0e15

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

.github/workflows/call-check-advisories.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,12 @@ on:
1313
type: string
1414
default: '[]'
1515
jobs:
16+
populate_cache:
17+
name: Check nix build
18+
uses: ./.github/workflows/call-nix.yml
1619
check-advisories:
1720
runs-on: ubuntu-20.04
21+
needs: populate_cache
1822
steps:
1923
- uses: actions/checkout@v3
2024
with:
@@ -33,15 +37,6 @@ jobs:
3337
id: fetch-binaries
3438
if: ${{ !inputs.is-artifact }}
3539
uses: actions/cache/restore@v3
36-
with:
37-
key: ${{ inputs.fetch-key }}
38-
path: ~/.local/dockerImages
39-
- name: Populate cache on cache miss
40-
if: ${{ !inputs.is-artifact && steps.fetch-binaries.outputs.cache-hit != 'true' }}
41-
uses: ./.github/workflows/call-nix.yml
42-
- name: Fetch cache (second attempt after cache miss)
43-
if: ${{ !inputs.is-artifact && steps.fetch-binaries.outputs.cache-hit != 'true' }}
44-
uses: actions/cache/restore@v3
4540
with:
4641
key: ${{ inputs.fetch-key }}
4742
path: ~/.local/dockerImages

0 commit comments

Comments
 (0)