We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4689882 commit 73a7bfcCopy full SHA for 73a7bfc
.github/workflows/candidate-release.yml
@@ -20,14 +20,12 @@ jobs:
20
21
- name: Create tag
22
run: |
23
- echo ${TAG}
24
- echo ${TAG##*/}
+ echo VERSION="${TAG##*/}" >> $GITHUB_ENV
+ echo RC="$(git ls-remote --tags origin | grep $VERSION" >> $GITHUB_ENV
25
+ echo "${RC:0-1}"
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`"
+ if [[ -n "$RC" ]]; then
+ echo "${TAG}-rc-`expr "${RC:0-1}" + 1`"
31
else
32
echo "${TAG}-rc-1"
33
fi
0 commit comments