Skip to content

misc: testing change in /spec #2

misc: testing change in /spec

misc: testing change in /spec #2

name: API Specs Merger
on:
push:
paths:
- 'specs/**'
permissions:
contents: write # This is correct and grants the necessary permissions.
jobs:
lint-and-bundle:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.ref }}
- name: Set up Redocly CLI
run: npm install -g @redocly/cli
- name: Run specs bundling script
run: |
chmod +x script/generate-api-docs.sh
script/generate-api-docs.sh
- name: Commit and push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }} # Use the correct, built-in secret
branch: ${{ github.ref }}
message: "docs: generate API documentation"