Skip to content

Commit 5789c01

Browse files
authored
add asciidoctor check
1 parent b7860e4 commit 5789c01

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/asciidoctor.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Asciidoctor Validation
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '**.adoc'
7+
8+
jobs:
9+
validate-asciidoc:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Set up Ruby
15+
uses: ruby/setup-ruby@v1
16+
with:
17+
ruby-version: '3.2'
18+
bundler-cache: true
19+
20+
- name: Install Asciidoctor
21+
run: gem install asciidoctor
22+
23+
- name: Validate Asciidoctor files
24+
run: asciidoctor latest/ug/book.adoc -v -w -o /dev/null

0 commit comments

Comments
 (0)