Skip to content

Commit

Permalink
fix: don't save caches from merge queues
Browse files Browse the repository at this point in the history
This is a just in case, and likely will never become a problem. Github's cache isolation policy prevents caches created in merge queues from being used by any other branch.
  • Loading branch information
BD103 committed Apr 20, 2024
1 parent f9d6a94 commit ec17d1d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/actions/cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ runs:

# Either save a new cache...
- name: Save cache
if: ${{ inputs.action == 'save' }}
# We don't save caches from the merge queue either, due to Github's cache isolation policy.
if: ${{ inputs.action == 'save' && github.event_name != 'merge_group' }}
uses: actions/cache/save@v4
with:
path: |
Expand Down

0 comments on commit ec17d1d

Please sign in to comment.