Skip to content

Commit

Permalink
Fix cache-read-only for scheduled jobs
Browse files Browse the repository at this point in the history
The fix for #383 introduced a bug that caused the post-action to fail when
attemping to resolve `cache-read-only` for scheduled jobs.
This has been fixed with an explicit (rather than implicit) check for 'event.repository != null'.

Fixes #409
  • Loading branch information
bigdaz committed Aug 18, 2022
1 parent c85b5e1 commit bf2a15e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ inputs:
When 'true', existing entries will be read from the cache but no entries will be written.
By default this value is 'false' for workflows on the GitHub default branch and 'true' for workflows on other branches.
required: false
default: ${{ github.event.repository && github.ref_name != github.event.repository.default_branch }}
default: ${{ github.event.repository != null && github.ref_name != github.event.repository.default_branch }}

cache-write-only:
description: |
Expand Down

0 comments on commit bf2a15e

Please sign in to comment.