Skip to content

Commit

Permalink
Merge pull request #12 from atsign-foundation/ci/gitbook-pr-bot
Browse files Browse the repository at this point in the history
ci: add gitbook auto pr workflow
  • Loading branch information
XavierChanth committed Feb 23, 2024
2 parents 084fb47 + 2716f1b commit 53ff6e4
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/gitbook.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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?";

0 comments on commit 53ff6e4

Please sign in to comment.