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