From 5560cd76211a31421170a25f9c5126e01d7d1f40 Mon Sep 17 00:00:00 2001 From: Erik Burton Date: Wed, 6 Nov 2024 11:33:09 -0800 Subject: [PATCH] fix: don't cache on merge_group events (#15139) --- .github/actions/setup-go/action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/setup-go/action.yml b/.github/actions/setup-go/action.yml index bc52b5498ab..b5519fbad0e 100644 --- a/.github/actions/setup-go/action.yml +++ b/.github/actions/setup-go/action.yml @@ -85,7 +85,7 @@ runs: - uses: actions/cache/restore@v4.1.1 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/cache@v4.1.1 # 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: |