Skip to content

Commit f899402

Browse files
committed
chore: github release action was using incorect docker cache (argoproj#1387)
Signed-off-by: Jesse Suen <[email protected]>
1 parent c63b6c1 commit f899402

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/release.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ jobs:
1717
with:
1818
ref: ${{ github.event.inputs.tag }}
1919

20+
- name: Get SHA
21+
id: get-sha
22+
run: echo "::set-output name=sha::$(git log -1 --format='%H')"
23+
2024
- name: Set up QEMU
2125
uses: docker/setup-qemu-action@v1
2226

@@ -27,9 +31,7 @@ jobs:
2731
uses: actions/cache@v2
2832
with:
2933
path: /tmp/.buildx-cache
30-
key: ${{ runner.os }}-buildx-${{ github.sha }}
31-
restore-keys: |
32-
${{ runner.os }}-buildx-
34+
key: ${{ runner.os }}-buildx-${{ steps.get-sha.outputs.sha }}
3335

3436
- name: Print Disk Usage
3537
run: |

0 commit comments

Comments
 (0)