From 898dc970cc7d21e9586ed0d3f2f0136e948a52e5 Mon Sep 17 00:00:00 2001 From: Wu Tingfeng Date: Wed, 10 May 2023 15:20:14 +0800 Subject: [PATCH 1/2] Use go.mod instead of go 1.17 --- .github/workflows/go.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 08d4d248..e05a0d41 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -14,9 +14,9 @@ jobs: - uses: actions/checkout@v2 - name: Set up Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: - go-version: 1.17 + go-version-file: './go.mod' - name: Build run: go build -v ./... From d044c5a378e2c5ab99329c1df4b710df9bacd38a Mon Sep 17 00:00:00 2001 From: Wu Tingfeng Date: Wed, 10 May 2023 15:21:49 +0800 Subject: [PATCH 2/2] Upgrade to actions/checkout@v3 --- .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/go.yml | 2 +- README.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index de56f421..847b97e8 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -16,7 +16,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: # We must fetch at least the immediate parents so that if this is # a pull request then we can checkout the head. diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index e05a0d41..feaeaece 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -11,7 +11,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Go uses: actions/setup-go@v4 diff --git a/README.md b/README.md index 5eb92b97..46d826fa 100644 --- a/README.md +++ b/README.md @@ -82,7 +82,7 @@ jobs: name: A job to count the lines of code. steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Get the lines of code. id: scc uses: iryanbell/scc-docker-action@v1.0.2