Skip to content

Commit

Permalink
fix: don't cache on merge_group events (#15139)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikburt authored Nov 6, 2024
1 parent c6ad7b2 commit 5560cd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/actions/setup-go/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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: |
Expand Down

0 comments on commit 5560cd7

Please sign in to comment.