Skip to content

Commit 73a7bfc

Browse files
⬆️ CI/CD: Updated
1 parent 4689882 commit 73a7bfc

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/candidate-release.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,12 @@ jobs:
2020

2121
- name: Create tag
2222
run: |
23-
echo ${TAG}
24-
echo ${TAG##*/}
23+
echo VERSION="${TAG##*/}" >> $GITHUB_ENV
24+
echo RC="$(git ls-remote --tags origin | grep $VERSION" >> $GITHUB_ENV
25+
echo "${RC:0-1}"
2526
26-
echo OUTPUT="$(git ls-remote --tags origin | grep ${TAG##*/})" >> $GITHUB_ENV
27-
echo "${OUTPUT:0-1}"
28-
29-
if [[ -n "$OUTPUT" ]]; then
30-
echo "${TAG}-rc-`expr "${OUTPUT:0-1}" + 1`"
27+
if [[ -n "$RC" ]]; then
28+
echo "${TAG}-rc-`expr "${RC:0-1}" + 1`"
3129
else
3230
echo "${TAG}-rc-1"
3331
fi

0 commit comments

Comments
 (0)