From df06fb8ee90c7c12f6bb9c8e95dd63ef04fe56bf Mon Sep 17 00:00:00 2001 From: Keith James Date: Wed, 8 Jun 2022 13:42:17 +0100 Subject: [PATCH] Bugfix: Force fetch tags to get the correct annotated tag Workaround for https://github.com/actions/checkout/issues/290 --- .github/workflows/push_container_image.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/push_container_image.yml b/.github/workflows/push_container_image.yml index b7845e6..d44bf81 100644 --- a/.github/workflows/push_container_image.yml +++ b/.github/workflows/push_container_image.yml @@ -13,6 +13,11 @@ jobs: with: fetch-depth: 0 + - name: Force fetch annotated tags (workaround) + # Workaround for https://github.com/actions/checkout/issues/290 + run: | + git fetch --force --tags + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 with: