From 244d68b51a92734a960b119c7d169446a58a2a4a Mon Sep 17 00:00:00 2001 From: Weilin Shi <934587911@qq.com> Date: Thu, 10 Sep 2020 11:36:18 +0800 Subject: [PATCH] use v2 actions --- .github/workflows/go.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 31286d3..7acba41 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -5,16 +5,14 @@ jobs: name: Build runs-on: ubuntu-latest steps: - - name: Set up Go 1.13 - uses: actions/setup-go@v1 + - name: Set up Golang + uses: actions/setup-go@v2 with: - go-version: 1.13 - id: go + go-version: '^1.13.1' + - run: go version - name: Check out code into the Go module directory - uses: actions/checkout@v1 - with: - fetch-depth: 1 + uses: actions/checkout@v2 - name: install dependencies run: go mod download