Skip to content

Commit

Permalink
fix(ci): creation of release if it does not exists (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
M4tteoP authored Nov 27, 2023
1 parent 0018f98 commit 4197906
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,9 @@ jobs:
if: matrix.multiphase_eval=='true' && github.event_name == 'push' && contains(github.ref, 'refs/tags/')
run: |
set +e
tag="${GITHUB_REF#refs/tags/}"
if ! gh release view ${tag}; then
echo "Release ${tag} does not exist, creating..."
./.github/workflows/release_notes.sh ${tag} > release-notes.txt
gh release create ${tag} --draft --notes-file release-notes.txt --title ${GITHUB_REF#refs/tags/}
fi
Expand Down

0 comments on commit 4197906

Please sign in to comment.