From 422a41e7ff41ed526dcdb54ecc3d691e4bb57369 Mon Sep 17 00:00:00 2001 From: Jani Nikula Date: Sat, 7 Sep 2024 12:57:38 +0300 Subject: [PATCH] github: revert back to running git fetch --tags manually checkout@v4 fetch-tags: true does not seem to work as expected [1]. Version matrix ends up missing the tag for stable: matrix={"include":[{"ref":"master","name":"dev"},{"ref":"","name":"stable"}]} Work around this by reverting back to running git fetch --tags manually. [1] https://github.com/actions/checkout/issues/1781 --- .github/workflows/docs.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 18780a0e..f9632cc1 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -13,8 +13,8 @@ jobs: matrix: ${{ steps.version-matrix.outputs.matrix }} steps: - uses: actions/checkout@v4 - with: - fetch-tags: true + - name: Fetch tags + run: git fetch --tags origin - name: Set version matrix id: version-matrix run: echo "matrix=$(./.github/config.sh)" | tee $GITHUB_OUTPUT