File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 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/*
Original file line number Diff line number Diff line change 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/*
You can’t perform that action at this time.
0 commit comments