ci(meta): update workflow to use Go 1.20 and provide GITHUB_TOKEN

This commit is contained in:
2023-07-31 19:50:11 +01:00
parent f73a9c6c03
commit 54e3c95ade

View File

@@ -14,16 +14,13 @@ jobs:
uses: actions/checkout@v2
with:
ref: meta
- uses: actions/setup-go@v2
- uses: actions/setup-go@v4
with:
go-version: 1.17
- uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('builder/**/go.sum') }}
restore-keys: ${{ runner.os }}-go-
go-version: 1.20
- name: update total downloads shield JSON
run: go run . badges downloads -o total-downloads/shield.json
env:
GITHUB_TOKEN: ${{ github.token }}
- name: commit and push changes to meta branch
uses: stefanzweifel/git-auto-commit-action@v4
with: