Skip to content

Commit

Permalink
deploy snapshot/release
Browse files Browse the repository at this point in the history
  • Loading branch information
peterkir committed May 22, 2024
1 parent 1cb2dfc commit f7825b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/20_snapshot-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ jobs:
if [[ $version =~ (.*+SNAPSHOT.*+) ]]; then
gh release list --json tagName | jq --arg rel $rel 'select(.[].tagName == $rel)' | grep $rel
if [[ $? ]]; then
retVal=$?
if [[ $retVal == 0 ]]; then
echo "delete existiong snapshot release, before creating new one"
gh release delete snapshot_$rel
git push --delete origin snapshot_$rel
fi
Expand Down

0 comments on commit f7825b7

Please sign in to comment.