Skip to content

Adding Subscriptions API v3 Permissions #3976

Adding Subscriptions API v3 Permissions

Adding Subscriptions API v3 Permissions #3976

Workflow file for this run

name: Run Spectral on Pull Requests
on: pull_request
jobs:
build:
name: Run Spectral
runs-on: ubuntu-latest
steps:
# Check out the repository
- uses: actions/checkout@v4
with:
fetch-depth: 0
# Add comment to PR
- name: Comment a pull_request
uses: mshick/add-pr-comment@v2
with:
message: "Thanks for your contribution. The .json file will be checked now with Spectral."
repo-token: ${{ secrets.GITHUB_TOKEN }}
# Get the name of changed files
- name: Get changed files
id: changed-files
uses: tj-actions/[email protected]
with:
files: |
*.json
# Print the names of changed files
- name: Print changed files
run: |
echo "Changed files: ${{ steps.changed-files.outputs.modified_files }}"
# Run Spectral on changed files
- uses: stoplightio/[email protected]
with:
file_glob: ${{ steps.changed-files.outputs.modified_files }}