Skip to content

Commit 9641957

Browse files
authored
Use refname for staging cache key, too
1 parent bbe9f90 commit 9641957

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/deploy-staging.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
id: gatsby-cache-folder
5050
with:
5151
path: .cache
52-
key: ${{ runner.os }}-cache-gatsby-${{ github.ref }}
52+
key: ${{ runner.os }}-cache-gatsby-${{ github.refname }}
5353
restore-keys: |
5454
${{ runner.os }}-cache-gatsby-main
5555
@@ -58,7 +58,7 @@ jobs:
5858
id: gatsby-public-folder
5959
with:
6060
path: public/
61-
key: ${{ runner.os }}-public-gatsby-${{ github.ref }}
61+
key: ${{ runner.os }}-public-gatsby-${{ github.refname }}
6262
restore-keys: |
6363
${{ runner.os }}-public-gatsby-main
6464

0 commit comments

Comments
 (0)