-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: don't cache on merge_group events (#15139)
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,7 +85,7 @@ runs: | |
- uses: actions/cache/[email protected] | ||
name: Cache Go Build Outputs (restore) | ||
# For certain events, we don't necessarily want to create a build cache, but we will benefit from restoring from one. | ||
if: ${{ inputs.only-modules == 'false' && (github.event == 'merge_group' || inputs.restore-build-cache-only == 'true') }} | ||
if: ${{ inputs.only-modules == 'false' && (github.event_name == 'merge_group' || inputs.restore-build-cache-only == 'true') }} | ||
with: | ||
path: | | ||
${{ steps.go-cache-dir.outputs.gobuildcache }} | ||
|
@@ -98,7 +98,7 @@ runs: | |
- uses: actions/[email protected] | ||
# don't save cache on merge queue events | ||
if: ${{ inputs.only-modules == 'false' && (github.event != 'merge_group' && inputs.restore-build-cache-only == 'false') }} | ||
if: ${{ inputs.only-modules == 'false' && (github.event_name != 'merge_group' && inputs.restore-build-cache-only == 'false') }} | ||
name: Cache Go Build Outputs | ||
with: | ||
path: | | ||
|