Skip to content

Commit 802b183

Browse files
⬆️ CI/CD: Updated
1 parent 08dbb06 commit 802b183

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/candidate-release.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,14 @@ jobs:
1919
- uses: actions/checkout@v3
2020

2121
- name: Create tag
22-
run: |
23-
echo CURRENT_VERSION="${TAG##*/}"
24-
echo $CURRENT_VERSION
25-
26-
echo OUTPUT="$(git ls-remote --tags origin | grep $CURRENT_VERSION" >> $GITHUB_ENV
22+
run: |
23+
echo OUTPUT="$(git ls-remote --tags origin | grep ${TAG##*/})" >> $GITHUB_ENV
2724
echo "${OUTPUT:0-1}"
2825
2926
if [[ -n "$OUTPUT" ]]; then
30-
echo "${CURRENT_VERSION}-rc-`expr "${OUTPUT:0-1}" + 1`"
27+
echo "${TAG##*/}-rc-`expr "${OUTPUT:0-1}" + 1`"
3128
else
32-
echo "${CURRENT_VERSION}-rc-1"
29+
echo "${TAG##*/}-rc-1"
3330
fi
3431
shell: bash
3532

0 commit comments

Comments
 (0)