Skip to content

Commit

Permalink
Update open-pr.yml - elif
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieu-benoit authored Aug 22, 2023
1 parent b77b9da commit 26c0407
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/open-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,10 @@ jobs:
--token ${{ secrets.HUMANITEC_TOKEN }} \
--context /orgs/${{ secrets.HUMANITEC_ORG }}/apps/${{ vars.APP_NAME }} \
| jq -r .object.last_deploy.status)
INPROGRESS="in progress"
if [ "$CURRENT_STATUS" = "$INPROGRESS" ]; then
if [ "$CURRENT_STATUS" = "in progress" ]; then
echo "Deployment still in progress..."
sleep 1
else if [ "$CURRENT_STATUS" = "failed" ]; then
elif [ "$CURRENT_STATUS" = "failed" ]; then
echo "Deployment failed!"
IS_DONE=true
else
Expand Down

0 comments on commit 26c0407

Please sign in to comment.