ci: use body instead of fill #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Gitbook Review | |
on: | |
push: | |
branches: | |
- gitbook | |
jobs: | |
create-pull-request: | |
env: | |
branch: gitbook | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: Authenticate GitHub CLI | |
run: | | |
echo -e ${{ secrets.MY_GITHUB_TOKEN }} | gh auth login --with-token | |
- name: Create Pull Request | |
run: | | |
gh pr create \ | |
--base 'trunk' \ | |
--head 'gitbook' \ | |
--reviewer 'xavierchanth' \ | |
--title 'docs(automated): Update Gitbook docs' \ | |
--body 'Automated PR' || \ | |
echo "Already created?"; | |