docs(GITBOOK#125): No subject #3
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 | |
permissions: | |
contents: read | |
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 docs from Gitbook' \ | |
--body 'Sync Gitbook docs branch to trunk' || \ | |
echo "Already created?"; |