Get go version from go.mod

No need to update multiple places when bumping the go version.
This commit is contained in:
pagedown 2023-02-11 20:33:08 +08:00
parent 64fe9f82ed
commit 3c7df680cf
No known key found for this signature in database
GPG key ID: E921CF18AC8FF6EB
4 changed files with 15 additions and 7 deletions

View file

@ -26,7 +26,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: ">=1.20.0"
go-version-file: go.mod
- name: Checkout repository
uses: actions/checkout@v3