From 928041ef84c839c129938cb5f6c5ec901b896f45 Mon Sep 17 00:00:00 2001 From: Michele Azzolari Date: Wed, 6 Jan 2021 16:39:24 +0100 Subject: [PATCH] CI: use actions/checkout@v2 on ubuntu.20.04 --- .github/workflows/go.yml | 4 ++-- .github/workflows/release.yml | 8 +++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 6de9096..a4482f3 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -4,7 +4,7 @@ on: [push] jobs: build: name: Build - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - name: Set up Go 1.15 @@ -14,7 +14,7 @@ jobs: id: go - name: Check out code into the Go module directory - uses: actions/checkout@v1 + uses: actions/checkout@v2 - name: Build run: make build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bd4eba8..2cd67e5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,14 +7,16 @@ on: jobs: release: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - - name: Checkout - uses: actions/checkout@v1 - name: Set up Go 1.15 uses: actions/setup-go@v1 with: go-version: 1.15.x + - name: Checkout + uses: actions/checkout@v2 + - name: Fetch tag + run: git fetch -f origin ${{ github.ref }}:${{ github.ref }} - name: Cross build run: | GOOS=linux GOARCH=386 make -e buildx