Update workflow versioning (#6165)

* Use major version pinning for actions to reduce dependeabot churn.
* Use tilde matching for Go versions to use the latest patch release.
* Checkout before installing Go to fix go module caching.

Signed-off-by: SuperQ <superq@gmail.com>
This commit is contained in:
Ben Kochie
2023-06-18 11:23:25 +02:00
committed by GitHub
parent b868350fc2
commit 7e6d3bb533
9 changed files with 45 additions and 45 deletions

View File

@@ -13,12 +13,12 @@ jobs:
contents: write
steps:
- name: Checkout
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753
uses: actions/setup-go@v4
with:
go-version: '1.20.0'
go-version: '~1.20.0'
- name: Update Docs
run: |