Skip to content

trigger-worflow

trigger-worflow #15

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