Skip to content

Commit c52dab4

Browse files
author
Genevieve Nuebel
committed
Update version.yml — enforce labels on versioned OAS files
Changed-files check now includes openapi/v*.yml in addition to mx_platform_api.yml. PRs that modify versioned OAS files now require a minor or patch label before merge.
1 parent a0f3159 commit c52dab4

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎.github/workflows/version.yml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@ jobs:
1212
pull-requests: write
1313
steps:
1414
- uses: actions/checkout@v3
15-
- name: Get openapi file
15+
16+
- name: Check for changed OAS files
1617
id: changed-files-specific
1718
uses: tj-actions/changed-files@v41
1819
with:
19-
files: openapi/mx_platform_api.yml
20+
files: |
21+
openapi/v*.yml
2022
2123
- name: Require version label if openapi spec changed
2224
if: steps.changed-files-specific.outputs.any_changed == 'true'

0 commit comments

Comments
 (0)