Reduce README #3
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: Reduce README | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Install Asciidoctor Reducer | |
run: sudo gem install asciidoctor-reducer | |
- name: Reduce README | |
# to preserve preprocessor conditionals, add the --preserve-conditionals option | |
run: asciidoctor-reducer -a env-build-for-spring-academy -o README-reduced.adoc README.adoc | |
- name: Commit and Push README | |
uses: EndBug/add-and-commit@v9 | |
with: | |
add: README-reduced.adoc |