CI: fix post run cache (#31078)

* post cache only

* fix

* newline

* really github???
pull/31083/head
Justin Newberry 1 year ago committed by GitHub
parent 8a26b4383f
commit c907dd9e70
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 21
      .github/workflows/auto-cache/action.yaml

@ -24,9 +24,17 @@ runs:
with:
path: ${{ inputs.path }}
- name: restore github cache
if: ${{ !contains(runner.name, 'nsc') }}
uses: actions/cache/restore@v3
- name: setup github cache
if: ${{ !contains(runner.name, 'nsc') && inputs.save != 'false' }}
uses: 'actions/cache@v3'
with:
path: ${{ inputs.path }}
key: ${{ inputs.key }}
restore-keys: ${{ inputs.restore-keys }}
- name: setup github cache
if: ${{ !contains(runner.name, 'nsc') && inputs.save == 'false' }}
uses: 'actions/cache/restore@v3'
with:
path: ${{ inputs.path }}
key: ${{ inputs.key }}
@ -36,10 +44,3 @@ runs:
- id: scons-cache-setup
shell: bash
run: mkdir -p ${{ inputs.path }}
- name: save github cache
if: ${{ !contains(runner.name, 'nsc') && inputs.save != 'false' }}
uses: actions/cache/save@v3
with:
path: ${{ inputs.path }}
key: ${{ inputs.key }}

Loading…
Cancel
Save