We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 945f8d9 commit 8f459beCopy full SHA for 8f459be
.github/workflows/test.yml
@@ -116,7 +116,7 @@ jobs:
116
branch="$(gh pr view "$URL" --json headRefName -q .headRefName || true)"
117
if [[ -n "$branch" ]]; then
118
echo "Deleting branch: $branch"
119
- git push "https://github.com/${{ env.TESTING_REPOSITORY }}" --delete "$branch" || echo "Failed to delete branch: $branch"
+ gh api -X DELETE "repos/${{ env.TESTING_REPOSITORY }}/git/refs/heads/$branch" || echo "Failed to delete branch: $branch"
120
fi
121
elif [[ "$URL" == *"/issues/"* ]]; then
122
echo "Closing issue: $URL"
0 commit comments