From 483e9cf0500bf20f70e7206d1bcf6a0b88e92684 Mon Sep 17 00:00:00 2001 From: yejunjin Date: Sun, 30 Jun 2024 20:27:01 +0800 Subject: [PATCH] manually fetch tags (#25) Here is bug of actions/checkout: https://github.com/actions/checkout/issues/1467 --- .github/workflows/release_packages.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release_packages.yml b/.github/workflows/release_packages.yml index 565f9861..95be039c 100644 --- a/.github/workflows/release_packages.yml +++ b/.github/workflows/release_packages.yml @@ -16,8 +16,6 @@ jobs: steps: - name: Check out code uses: actions/checkout@v3 - with: - fetch-tags: true - name: Pull LFS run: | @@ -25,6 +23,7 @@ jobs: - name: Build deb package run: | + git fetch --tags TAG_NAME=$(git describe --tags $(git rev-list --tags --max-count=1)) VERSION_NUMBER=$(echo "$TAG_NAME" | sed 's/^v//') source activate ds_py @@ -60,7 +59,6 @@ jobs: uses: actions/checkout@v3 with: lfs: true - fetch-tags: true - name: Pull LFS run: | @@ -68,6 +66,7 @@ jobs: - name: Build rpm package run: | + git fetch --tags TAG_NAME=$(git describe --tags $(git rev-list --tags --max-count=1)) VERSION_NUMBER=$(echo "$TAG_NAME" | sed 's/^v//') source /opt/rh/devtoolset-7/enable @@ -102,10 +101,10 @@ jobs: uses: actions/checkout@v3 with: lfs: true - fetch-tags: true - name: Build manylinux wheels run: | + git fetch --tags TAG_NAME=$(git describe --tags $(git rev-list --tags --max-count=1)) VERSION_NUMBER=$(echo "$TAG_NAME" | sed 's/^v//') AS_RELEASE_VERSION=$VERSION_NUMBER bash scripts/release/python_manylinux_build.sh