trigger-worflow #9
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: Publish API docs | |
on: | |
repository_dispatch: | |
types: [trigger-worflow] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
ref: gh-pages | |
- name: Publish API docs | |
working-directory: v2 | |
run: | | |
echo "Publishing API docs..." | |
curl -o api.json https://fipe.parallelum.dev/swagger/doc.json | |
ls -a | |
docker run --rm -v $PWD:/spec redocly/cli build-docs api.json -t ./custom.hbs -o index.html | |
- name: Display changes | |
run: | | |
git diff --exit-code || true | |
- uses: stefanzweifel/git-auto-commit-action@v5 |