Skip to content

Commit 249dcef

Browse files
authored
Merge pull request #4407 from ralfhandl/main-protect-files-simpler
main: minimalistic check for changes to `versions` and `schemas` folder
2 parents 428007d + a963ad6 commit 249dcef

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: check-restricted-files
2+
3+
# Author: @ralfhandl
4+
# Issue: https://github.com/OAI/OpenAPI-Specification/issues/3432
5+
6+
# This workflow fails if restricted files are changed in a pull request
7+
8+
on:
9+
pull_request:
10+
paths:
11+
- 'schemas/**/*.yaml'
12+
- 'versions/*.md'
13+
14+
jobs:
15+
check-files:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Check changed files
19+
shell: bash
20+
run: |
21+
echo This PR contains changes to files that should not be changed
22+
exit 1

0 commit comments

Comments
 (0)