Skip to content

EDU-10330 Updating Checkout API #2675

EDU-10330 Updating Checkout API

EDU-10330 Updating Checkout API #2675

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
# Run Spectral on changed files
- uses: stoplightio/[email protected]
with:
file_glob: ${{ steps.changed-files.outputs.all_modified_files }}