chore: test commit #9
Workflow file for this run
This file contains hidden or 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: 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 | |
| working-directory: ${{ github.workspace }} | |
| run: | | |
| chmod +x scripts/generate-api-docs.sh | |
| ./scripts/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" |