Skip to content

Commit

Permalink
manually fetch tags (#25)
Browse files Browse the repository at this point in the history
Here is bug of actions/checkout: actions/checkout#1467
  • Loading branch information
yejunjin authored Jun 30, 2024
1 parent 5ceddf9 commit 483e9cf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/release_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,14 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v3
with:
fetch-tags: true

- name: Pull LFS
run: |
git lfs pull
- 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
Expand Down Expand Up @@ -60,14 +59,14 @@ jobs:
uses: actions/checkout@v3
with:
lfs: true
fetch-tags: true

- name: Pull LFS
run: |
git lfs pull
- 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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 483e9cf

Please sign in to comment.