Please use the GitHub CLI for this use case.
- name: Change Base of PR
run: |
gh pr edit $PR_NUMBER --repo $REPO --base $BASE_BRANCH
env:
REPO: Owner/Repository
PR_NUMBER: 11
BASE_BRANCH: new-base-branch
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
This action changes the Pull Request's base branch.
Required The repository name with syntax Owner/Repository
Required Number of the pull request to change
Required The name of the branch that shall be changed
Required GitHub Token
name: Change Base of PR
uses: Surnet/[email protected]
with:
repo: Owner/Repository
pull-number: 11
new-base: new-base-branch
token: ${{ secrets.GITHUB_TOKEN }}