Skip to content

Merge pull request #94 from InnerSourceCommons/feature/finalize-under… #27

Merge pull request #94 from InnerSourceCommons/feature/finalize-under…

Merge pull request #94 from InnerSourceCommons/feature/finalize-under… #27

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 }}