Corrected skip steps for cache to avoid redundant saves
This commit is contained in:
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@@ -99,7 +99,7 @@ jobs:
|
|||||||
key: "${{ env.DIGEST }}-atomic-base-image"
|
key: "${{ env.DIGEST }}-atomic-base-image"
|
||||||
|
|
||||||
- name: Pull atomic base image
|
- name: Pull atomic base image
|
||||||
if: steps.cache.outputs.cache-hit != 'true'
|
if: steps.cache-base-atomic-restore.outputs.cache-hit != 'true'
|
||||||
env:
|
env:
|
||||||
FULL_BASE_IMAGE: "docker://${{ env.BASE_IMAGE }}:${{ env.FEDORA_VERSION }}"
|
FULL_BASE_IMAGE: "docker://${{ env.BASE_IMAGE }}:${{ env.FEDORA_VERSION }}"
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
@@ -109,7 +109,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Save base-atomic container cache
|
- name: Save base-atomic container cache
|
||||||
id: cache-base-atomic-save
|
id: cache-base-atomic-save
|
||||||
if: steps.cache.outputs.cache-hit != 'true' && github.event_name == 'pull_request'
|
if: steps.cache-base-atomic-restore.outputs.cache-hit != 'true' && github.event_name == 'pull_request'
|
||||||
uses: actions/cache/save@v4
|
uses: actions/cache/save@v4
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
|
|||||||
Reference in New Issue
Block a user