Skip to content

Commit 4197906

Browse files
authored
fix(ci): creation of release if it does not exists (#247)
1 parent 0018f98 commit 4197906

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,9 @@ jobs:
158158
if: matrix.multiphase_eval=='true' && github.event_name == 'push' && contains(github.ref, 'refs/tags/')
159159
run: |
160160
set +e
161+
tag="${GITHUB_REF#refs/tags/}"
161162
if ! gh release view ${tag}; then
163+
echo "Release ${tag} does not exist, creating..."
162164
./.github/workflows/release_notes.sh ${tag} > release-notes.txt
163165
gh release create ${tag} --draft --notes-file release-notes.txt --title ${GITHUB_REF#refs/tags/}
164166
fi

0 commit comments

Comments
 (0)