Skip to content

Commit

Permalink
change chache condition
Browse files Browse the repository at this point in the history
Signed-off-by: Yutaka Kondo <yutaka.kondo@youtalk.jp>
  • Loading branch information
youtalk committed Nov 15, 2024
1 parent 3746713 commit c3d5037
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 @@ -37,7 +37,7 @@ runs:

- name: Cache ccache
uses: actions/cache@v4
if: ${{ github.ref == 'refs/heads/main' }}
if: ${{ github.ref == 'refs/heads/main' && inputs.repos == 'autoware.repos' }}
id: cache-ccache
with:
path: |
Expand All @@ -48,7 +48,7 @@ runs:
- name: Cache apt-get
uses: actions/cache@v4
if: ${{ github.ref == 'refs/heads/main' }}
if: ${{ github.ref == 'refs/heads/main' && inputs.repos == 'autoware.repos' }}
id: cache-apt-get
with:
path: |
Expand All @@ -59,7 +59,7 @@ runs:
- name: Restore ccache
uses: actions/cache/restore@v4
if: ${{ github.ref != 'refs/heads/main' }}
if: ${{ github.ref != 'refs/heads/main' || inputs.repos != 'autoware.repos' }}
with:
path: |
root-ccache
Expand All @@ -69,7 +69,7 @@ runs:
- name: Restore apt-get
uses: actions/cache/restore@v4
if: ${{ github.ref != 'refs/heads/main' }}
if: ${{ github.ref != 'refs/heads/main' || inputs.repos != 'autoware.repos' }}
with:
path: |
var-cache-apt
Expand Down

0 comments on commit c3d5037

Please sign in to comment.