Skip to content

Commit

Permalink
ci: Remove auto-approve PRs now it is disabled at org level (#674)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmidyson authored Apr 8, 2024
1 parent 55c6138 commit 1645b34
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/devbox-update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,3 @@ jobs:
--body "This PR was automatically created by the scheduled devbox update workflow.")"
gh pr merge --auto --squash "${pr_url}"
echo "pr_url=${pr_url}" >>"${GITHUB_OUTPUT}"
- name: Approve PR using workflow token
if: steps.devbox-versions-changed.outputs.number_changed > 0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
if [ "$(gh pr status --json reviewDecision -q .currentBranch.reviewDecision)" != "APPROVED" ]; then
gh pr review --approve "${{ steps.create-pr.outputs.pr_url }}"
else
echo "PR already approved, skipping additional approvals to minimize emails/notification noise."
fi

0 comments on commit 1645b34

Please sign in to comment.