Skip to content

Commit 83d4f30

Browse files
authored
Fix setup-go restore key (#1394)
1 parent 6e77150 commit 83d4f30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/actions/setup-go/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ runs:
3636
run: |
3737
if [[ "$CACHE_FROM_PREVIOUS_RUN" == "true" ]]; then
3838
echo "key=$PREFIX-$CACHE_NAME-$RUN_ID" >> $GITHUB_OUTPUT
39-
echo "restore-keys=$PREFIX-$CACHE_NAME" >> $GITHUB_OUTPUT
39+
echo "restore-keys=$PREFIX-$CACHE_NAME-" >> $GITHUB_OUTPUT
4040
else
4141
echo "key=$PREFIX-$CACHE_NAME" >> $GITHUB_OUTPUT
42-
echo "restore-keys=$PREFIX" >> $GITHUB_OUTPUT
42+
echo "restore-keys=$PREFIX-" >> $GITHUB_OUTPUT
4343
fi
4444
4545
env:

0 commit comments

Comments
 (0)