Skip to content
Snippets Groups Projects
Unverified Commit 4a0e6f3b authored by Nemanja Glumac's avatar Nemanja Glumac Committed by GitHub
Browse files

[CI] Add path filtering to the yaml linter workflow (#28257)

parent 99553a7c
Branches
Tags
No related merge requests found
......@@ -86,3 +86,7 @@ snowplow:
documentation:
- "docs/**"
- "**.md"
yaml:
- "**.yml"
- "**.yaml"
......@@ -8,9 +8,24 @@ on:
pull_request:
jobs:
files-changed:
name: Check which files changed
runs-on: ubuntu-20.04
timeout-minutes: 3
outputs:
yaml: ${{ steps.changes.outputs.yaml }}
steps:
- uses: actions/checkout@v3
- name: Test which files changed
uses: dorny/paths-filter@v2.11.1
id: changes
with:
token: ${{ github.token }}
filters: .github/file-paths.yaml
yaml-linter:
runs-on: ubuntu-20.04
if: needs.files-changed.outputs.yaml == 'true'
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment