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 08dbb06 commit 802b183Copy full SHA for 802b183
.github/workflows/candidate-release.yml
@@ -19,17 +19,14 @@ jobs:
19
- uses: actions/checkout@v3
20
21
- 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
+ run: |
+ echo OUTPUT="$(git ls-remote --tags origin | grep ${TAG##*/})" >> $GITHUB_ENV
27
echo "${OUTPUT:0-1}"
28
29
if [[ -n "$OUTPUT" ]]; then
30
- echo "${CURRENT_VERSION}-rc-`expr "${OUTPUT:0-1}" + 1`"
+ echo "${TAG##*/}-rc-`expr "${OUTPUT:0-1}" + 1`"
31
else
32
- echo "${CURRENT_VERSION}-rc-1"
+ echo "${TAG##*/}-rc-1"
33
fi
34
shell: bash
35
0 commit comments