Skip to content

Commit

Permalink
verbosity and small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CoderDake committed Aug 24, 2023
1 parent 71a0f0b commit 4324a53
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/daily-dev-bump.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,12 @@ jobs:
for EXISTING_BRANCH in $EXISTING_BRANCHES; do
PR_IS_CLOSED=$(gh pr view --json closed --jq '.closed' "$EXISTING_BRANCH")
PR_AUTHOR=$(gh pr view --json author --jq '.author.login' "$EXISTING_BRANCH")
if [ "$PR_IS_CLOSED" == "true" && "$PR_AUTHOR" == "DartDevtoolWorkflowBot"] ; then
if [ "$PR_IS_CLOSED" == "true" && "$PR_AUTHOR" == "DartDevtoolWorkflowBot" ] ; then
# If the branch exists and the PR is closed we will delete it
echo "Deleting $EXISTING_BRANCH"
gh api /repos/flutter/devtools/git/refs/heads/$EXISTING_BRANCH -X DELETE
else
echo "Avoiding $EXISTING_BRANCH with is_closed:$PR_IS_CLOSED and author:$PR_AUTHOR"
fi
done
env:
Expand Down

0 comments on commit 4324a53

Please sign in to comment.