From 7a59f3445f022bc6dc6fa9e56111c716c7f6e68e Mon Sep 17 00:00:00 2001 From: Kostiantyn <32730812+kkovaletp@users.noreply.github.com> Date: Fri, 8 Nov 2024 17:32:15 +0200 Subject: [PATCH] Fix scheduled docker build for the latest tagged commit (#1116) * Try to fetch all history * more debug output * The final commit --------- Co-authored-by: Konstantin Koval --- .github/workflows/build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7531189c..aa26163d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,6 +29,7 @@ jobs: uses: actions/checkout@v4 with: fetch-tags: 'true' + fetch-depth: 0 - name: Prepare the Matrix id: prepare_matrix @@ -43,7 +44,7 @@ jobs: ;; schedule) git fetch --all - TAG=$(git describe --tags --abbrev=0 || exit 0) + TAG=$(git describe --tags --abbrev=0 --always || exit 0) if [ -z "$TAG" ]; then echo 'tags=[{"tag": "${{ github.ref_name }}", "ref": "${{ github.ref }}"}]' >> $GITHUB_OUTPUT else