From fa07b1029b4fae9139ccd4972b7716aed427b5b7 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Mon, 29 Nov 2021 09:39:54 +1100 Subject: [PATCH] Workaround tags not being fetched correctly This results in the version within the container being displayed incorrectly (always 0.1.1). Fixes https://github.com/itchysats/itchysats/issues/537. --- .github/workflows/build-release-binary.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build-release-binary.yml b/.github/workflows/build-release-binary.yml index 7b5761c..82ac7ea 100644 --- a/.github/workflows/build-release-binary.yml +++ b/.github/workflows/build-release-binary.yml @@ -42,6 +42,9 @@ jobs: ref: ${{ github.event.release.target_commitish }} token: ${{ secrets.ITCHY_GITHUB_TOKEN }} + - name: Fetch all tags (workaround for https://github.com/actions/checkout/issues/290) + run: git fetch --tags --force + - name: Install toolchain from `rust-toolchain.toml` run: rustup show