Skip to content

Commit

Permalink
all: fix ci ref_protected check for caching (#4254)
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmcculloch authored Mar 2, 2022
1 parent 3bfe748 commit d833c02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/setup-go/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ runs:
# rebuilds and cause test runs to skip tests that have no reason to rerun.
# Don't run this for protected branches like master/main.
- uses: actions/cache@v2
if: github.ref_protected || github.ref != 'refs/heads/master'
if: (!github.ref_protected) && github.ref != 'refs/heads/master' && github.ref != 'refs/heads/main'
with:
path: ~/.cache/go-build
key: ${{ env.PREFIX }}-go-build-${{ github.ref }}-${{ hashFiles('**', '!.git') }}
Expand Down

0 comments on commit d833c02

Please sign in to comment.