Skip to content

Commit

Permalink
avoid name conflicts across forks for the workflow cache
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Feb 15, 2021
1 parent dc0e80b commit 8cb2977
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/macos-build.yml
Expand Up @@ -48,11 +48,11 @@ jobs:
if: github.event_name == 'pull_request'
with:
path: ${{ env.CCACHE_DIR }}
key: build-mac-ccache-${{ github.head_ref }}-${{ github.sha }}
key: build-mac-ccache-${{ github.repository_owner }}-${{ github.head_ref }}-${{ github.sha }}
# The head_ref or source branch of the pull request in a workflow run.
# The base_ref or target branch of the pull request in a workflow run.
restore-keys: |
build-mac-ccache-${{ github.head_ref }}-
build-mac-ccache-${{ github.repository_owner }}-${{ github.head_ref }}-
build-mac-ccache-${{ github.base_ref }}-
build-mac-ccache-refs/heads/master-
Expand Down

0 comments on commit 8cb2977

Please sign in to comment.