Skip to content

Commit

Permalink
Changes tools installation
Browse files Browse the repository at this point in the history
- Install asciidoctor using Ruby gem command.
  That enables getting latest asciidoctor.
  • Loading branch information
manoelcampos committed Aug 15, 2020
1 parent d98b24d commit f4001cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/asciidoctor-ghpages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ jobs:
- name: asciidoctor-ghpages
uses: manoelcampos/[email protected]
with:
asciidoctor_params: '--attribute=nofooter'
asciidoctor_params: --attribute=nofooter
6 changes: 3 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ inputs:
asciidoctor_params:
description: 'Extra parameters to passs to the asciidoctor command to customize the process of building adoc files'
required: false


runs:
using: "composite"
Expand All @@ -23,7 +22,9 @@ runs:
shell: bash

- name: Asciidoctor Setup
run: sudo apt-get install asciidoctor -y
run: |
sudo apt-get install gem -y
sudo gem install asciidoctor
shell: bash

# Avoids keeping the commit history for the gh-pages branch,
Expand All @@ -44,7 +45,6 @@ runs:
env:
INPUT_ASCIIDOCTOR_PARAMS: ${{ inputs.asciidoctor_params }}
run: |
echo "Extra asciidoctor params: $INPUT_ASCIIDOCTOR_PARAMS"
find . -name "*.adoc" | xargs asciidoctor -b html $INPUT_ASCIIDOCTOR_PARAMS
for FILE in `find . -name "README.html"`; do
mv "$FILE" "`dirname $FILE`/index.html";
Expand Down

0 comments on commit f4001cd

Please sign in to comment.