From a268f68f0e3be271f80073871b81d42c16a11801 Mon Sep 17 00:00:00 2001 From: Stepan Stipl Date: Wed, 29 Dec 2021 17:58:05 +0000 Subject: [PATCH] ci: Update checkout to v2 fixes #248 --- .github/workflows/main.yaml | 12 ++++++++---- .github/workflows/nightly.yaml | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 09f3569a..e0710c14 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -20,8 +20,10 @@ jobs: runs-on: ubuntu-latest container: golang:1.17.1-alpine3.14 steps: + - name: Install git + run: apk add --update --no-cache git - name: Checkout code - uses: actions/checkout@v1 + uses: actions/checkout@v2 with: fetch-depth: 0 - name: Test @@ -42,10 +44,12 @@ jobs: - os: windows arch: arm64 steps: + - name: Install git + run: apk add --update --no-cache git - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v2 with: - fetch-depth: 1 + fetch-depth: 0 - name: Build run: | scripts/alpine-setup.sh @@ -77,7 +81,7 @@ jobs: ] steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v2 with: fetch-depth: 1 - uses: actions/download-artifact@v1 diff --git a/.github/workflows/nightly.yaml b/.github/workflows/nightly.yaml index c82798a1..83e0b952 100644 --- a/.github/workflows/nightly.yaml +++ b/.github/workflows/nightly.yaml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v1 + uses: actions/checkout@v2 with: fetch-depth: 0