File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -99,11 +99,17 @@ jobs:
9999 git commit -m "chore: update homebrew formula to ${{ steps.release.outputs.version }}"
100100 git push origin "$BRANCH_NAME"
101101
102- # Create PR using GitHub CLI
103- gh pr create --title "chore: update homebrew formula to ${{ steps.release.outputs.version }}" \
102+ # Create PR using GitHub CLI (may fail if Actions doesn't have PR permissions)
103+ # To enable: Settings → Actions → General → Workflow permissions → Allow GitHub Actions to create and approve pull requests
104+ if gh pr create --title "chore: update homebrew formula to ${{ steps.release.outputs.version }}" \
104105 --body "Automated PR to update Homebrew formula for release ${{ steps.release.outputs.version }}" \
105106 --base master \
106- --head "$BRANCH_NAME"
107+ --head "$BRANCH_NAME"; then
108+ echo "✅ PR created successfully"
109+ else
110+ echo "⚠️ Could not create PR automatically. Please create PR manually from branch: $BRANCH_NAME"
111+ echo " Or enable PR creation in Settings → Actions → General → Workflow permissions"
112+ fi
107113 fi
108114 env :
109115 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments