Skip to content

Commit

Permalink
update condition
Browse files Browse the repository at this point in the history
Signed-off-by: Yutaka Kondo <[email protected]>
  • Loading branch information
youtalk committed Jul 11, 2024
1 parent cc26a02 commit da239ad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/actions/docker-build/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ runs:

- name: Cache ccache
uses: actions/cache@v4
if: ${{ inputs.name == 'no-cuda' }}
if: ${{ inputs.name == 'no-cuda' && github.ref == 'refs/heads/main' }}
id: cache-ccahce

Check warning on line 40 in .github/actions/docker-build/action.yaml

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (ccahce)
with:
path: |
Expand All @@ -50,7 +50,7 @@ runs:
- name: Cache apt-get
uses: actions/cache@v4
if: ${{ inputs.name == 'no-cuda' }}
if: ${{ inputs.name == 'no-cuda' && github.ref == 'refs/heads/main' }}
id: cache-apt-get
with:
path: |
Expand All @@ -63,7 +63,7 @@ runs:
- name: Restore ccache
uses: actions/cache/restore@v4
if: ${{ inputs.name != 'no-cuda' }}
if: ${{ inputs.name != 'no-cuda' || github.ref != 'refs/heads/main' }}
with:
path: |
root-ccache
Expand All @@ -76,7 +76,7 @@ runs:
- name: Restore apt-get
uses: actions/cache/restore@v4
if: ${{ inputs.name != 'no-cuda' }}
if: ${{ inputs.name != 'no-cuda' || github.ref != 'refs/heads/main' }}
with:
path: |
var-cache-apt
Expand Down

0 comments on commit da239ad

Please sign in to comment.