Skip to content

Commit 29326d7

Browse files
committed
github: update flow
1 parent 125cf63 commit 29326d7

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.github/workflows/release_packages_all.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
fi
6262
source activate ds_py
6363
64-
git fetch --tags
64+
git fetch --tags -f
6565
TAG_NAME=$(git describe --tags $(git rev-list --tags --max-count=1))
6666
VERSION_NUMBER=$(echo "$TAG_NAME" | sed 's/^v//' | sed 's/-.*$//')
6767
@@ -138,7 +138,7 @@ jobs:
138138
source /miniconda/etc/profile.d/conda.sh
139139
fi
140140
141-
git fetch --tags
141+
git fetch --tags -f
142142
TAG_NAME=$(git describe --tags $(git rev-list --tags --max-count=1))
143143
VERSION_NUMBER=$(echo "$TAG_NAME" | sed 's/^v//')
144144
@@ -189,6 +189,7 @@ jobs:
189189
path: release/
190190

191191
- name: Release all packages
192-
uses: softprops/action-gh-release@v1
192+
uses: softprops/action-gh-release@v2
193+
if: github.ref_type == 'tag'
193194
with:
194195
files: release/*

.github/workflows/release_packages_cuda_only.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
source activate ds_py
5050
5151
git config --global --add safe.directory '*'
52-
git fetch --tags
52+
git fetch --tags -f
5353
TAG_NAME=$(git describe --tags $(git rev-list --tags --max-count=1))
5454
VERSION_NUMBER=$(echo "$TAG_NAME" | sed 's/^v//' | sed 's/-.*$//')
5555
@@ -110,7 +110,7 @@ jobs:
110110
fi
111111
112112
git config --global --add safe.directory '*'
113-
git fetch --tags
113+
git fetch --tags -f
114114
TAG_NAME=$(git describe --tags $(git rev-list --tags --max-count=1))
115115
VERSION_NUMBER=$(echo "$TAG_NAME" | sed 's/^v//')
116116
@@ -159,6 +159,7 @@ jobs:
159159
path: release/
160160

161161
- name: Release all packages
162-
uses: softprops/action-gh-release@v1
162+
uses: softprops/action-gh-release@v2
163+
if: github.ref_type == 'tag'
163164
with:
164165
files: release/*

0 commit comments

Comments
 (0)