Skip to content

Commit

Permalink
Fix cache action when used in a push (not a pull_request) workflow (
Browse files Browse the repository at this point in the history
  • Loading branch information
yvan-sraka committed Apr 13, 2024
1 parent 8e9d370 commit 430e419
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ runs:
- name: Cache build artifacts (used to speed up GitHub Codespaces bootstrapping)
uses: actions/upload-artifact@v4
with:
name: cache-${{ github.event.pull_request.head.sha }}-${{ inputs.ghc_version }}
name: cache-${{ github.event.pull_request.head.sha || github.sha }}-${{ inputs.ghc_version }}
path: |
./dist-newstyle

0 comments on commit 430e419

Please sign in to comment.