Merge pull request #94 from InnerSourceCommons/feature/finalize-under… #27
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 Branch Deploy | |
on: | |
push: | |
branches: | |
- "main" | |
jobs: | |
gitbook-generation: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
book: [Home, Getting-Started-with-InnerSource, Understanding-the-InnerSource-Checklist] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ matrix.book }} | |
- name: Merge branch into the book's branch | |
uses: mtanzi/action-automerge@v1 | |
with: | |
github_token: ${{ github.token }} | |
source: 'main' | |
target: ${{ matrix.book }} | |
- name: Copy .gitbook.yml to root | |
run: cp books/${{ matrix.book }}/.gitbook.yaml . | |
- name: Commit updated files for the book | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: Writing updated files for the book | |
branch: ${{ matrix.book }} |