Skip to content

Commit 54e3c95

Browse files
committed
ci(meta): update workflow to use Go 1.20 and provide GITHUB_TOKEN
1 parent f73a9c6 commit 54e3c95

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/update-metadata.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,13 @@ jobs:
1414
uses: actions/checkout@v2
1515
with:
1616
ref: meta
17-
- uses: actions/setup-go@v2
17+
- uses: actions/setup-go@v4
1818
with:
19-
go-version: 1.17
20-
- uses: actions/cache@v2
21-
with:
22-
path: ~/go/pkg/mod
23-
key: ${{ runner.os }}-go-${{ hashFiles('builder/**/go.sum') }}
24-
restore-keys: ${{ runner.os }}-go-
19+
go-version: 1.20
2520
- name: update total downloads shield JSON
2621
run: go run . badges downloads -o total-downloads/shield.json
22+
env:
23+
GITHUB_TOKEN: ${{ github.token }}
2724
- name: commit and push changes to meta branch
2825
uses: stefanzweifel/git-auto-commit-action@v4
2926
with:

0 commit comments

Comments
 (0)