forked from InnerSourceCommons/InnerSourcePatterns
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 680 Bytes
/
book.yml
File metadata and controls
36 lines (29 loc) · 680 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Book ToC Generation
on:
push:
branches:
- "main"
- "book-staging"
jobs:
book-toc-generation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- uses: actions/setup-ruby@v1
with:
ruby-version: '2.6'
- name: Install ruby dependencies
run: |
cd book/
gem install bundler
bundle install
- name: Generate ToC
run: |
cd book/
ruby generate_toc.rb
- name: Commit new ToC to book/toc.md
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Writing new ToC for the book