Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

Merge pull request #31 from femdevs/snyk-fix-1e5ac753f7fc340e8a0c2ced… #538

Merge pull request #31 from femdevs/snyk-fix-1e5ac753f7fc340e8a0c2ced…

Merge pull request #31 from femdevs/snyk-fix-1e5ac753f7fc340e8a0c2ced… #538

Workflow file for this run

name: Check & deploy API documentation
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
pull-requests: write
jobs:
deploy-doc:
if: ${{ github.event_name != 'pull_request' }}
name: Deploy API documentation on Bump
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@main
- name: Deploy API documentation
uses: bump-sh/github-action@master
with:
doc: 'e1e8a461-3b29-4d71-a8fc-010429c9761e'
token: ${{secrets.BUMP_TOKEN}}
file: documentation/api-documentation.yml
api-diff:
if: ${{ github.event_name == 'pull_request' }}
name: Check API diff on Bump
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@main
- name: Comment pull request with API diff
uses: bump-sh/github-action@master
with:
doc: 'e1e8a461-3b29-4d71-a8fc-010429c9761e'
token: ${{secrets.BUMP_TOKEN}}
file: documentation/api-documentation.yml
command: diff
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}