Skip to content

Commit 878d9e7

Browse files
⬆️ CI/CD: Updated
1 parent 1740bbd commit 878d9e7

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

.github/workflows/candidate-release.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,17 @@ jobs:
2323
echo OUTPUT="$(git ls-remote --tags origin | grep ${TAG##*/})" >> $GITHUB_ENV
2424
2525
if [[ -n "$OUTPUT" ]]; then
26-
git tag "${TAG##*/}-rc-`expr "${OUTPUT:0-1}" + 1`"
26+
echo NEW_TAG="${TAG##*/}-rc-`expr "${OUTPUT:0-1}" + 1`" >> $GITHUB_ENV
2727
else
28-
git tag "${TAG##*/}-rc-1"
28+
echo NEW_TAG="${TAG##*/}-rc-1" >> $GITHUB_ENV
2929
fi
30+
31+
git tag $NEW_TAG
3032
git push origin --tags
3133
shell: bash
3234

33-
# - name: Create release
34-
# env:
35-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36-
# run: |
37-
# echo ${TAG##*/}
38-
# gh release create ${TAG##*/} \
39-
# --repo="$GITHUB_REPOSITORY" \
40-
# --title="${TAG##*/}rc" \
41-
# --generate-notes
35+
- name: Create release
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
run: |
39+
echo $NEW_TAG

0 commit comments

Comments
 (0)