Avoid failing call to /api/model-index (#37284) #1
This file contains 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: YAML | |
on: | |
push: | |
branches: | |
- 'master' | |
- 'release-**' | |
pull_request: | |
jobs: | |
files-changed: | |
name: Check which files changed | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 3 | |
outputs: | |
yaml: ${{ steps.changes.outputs.yaml }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Test which files changed | |
uses: dorny/[email protected] | |
id: changes | |
with: | |
token: ${{ github.token }} | |
filters: .github/file-paths.yaml | |
yaml-linter: | |
runs-on: ubuntu-22.04 | |
if: needs.files-changed.outputs.yaml == 'true' | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Prepare front-end environment | |
uses: ./.github/actions/prepare-frontend | |
- run: yarn run lint-yaml |