From bf3e87ad86a4d0bcab81e622cbb83b7ae9278891 Mon Sep 17 00:00:00 2001 From: eikendev Date: Mon, 18 Apr 2022 13:20:07 +0200 Subject: [PATCH] Update documentation and publish workflow --- .github/workflows/documentation.yml | 6 +++--- .github/workflows/publish.yml | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 417c4a2..c874a6e 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -22,12 +22,12 @@ jobs: if: ${{ github.ref == 'refs/heads/main' }} steps: - name: Checkout the repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: - ref: ${{ github.head_ref }} + fetch-depth: 0 # Needed to describe git ref during build. - name: Export GOBIN - uses: actions/setup-go@v2 + uses: actions/setup-go@v3 with: go-version: 1.16 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8afc36f..15416c2 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -12,6 +12,8 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v3 + with: + fetch-depth: 0 # Needed to describe git ref during build. - name: Export GOBIN uses: actions/setup-go@v3