Skip to content

Commit e5b923a

Browse files
author
Nicki Nixon
committed
fix(ci): correct file extension to .yaml in workflows
The OpenAPI file is v20111101.yaml (not .yml), update all workflow references to use the correct extension.
1 parent 754ddcc commit e5b923a

3 files changed

Lines changed: 8 additions & 12 deletions

File tree

.github/workflows/update.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
id: changed-files-specific
2929
uses: tj-actions/changed-files@v41
3030
with:
31-
files: openapi/v20111101.yml
31+
files: openapi/v20111101.yaml
3232
- name: Generate access token
3333
id: generate_token
3434
uses: tibdex/github-app-token@v1

.github/workflows/validate.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ jobs:
1010
- name: Validate OpenAPI Schema
1111
uses: thiyagu06/openapi-validator-action@v1
1212
with:
13-
filepath: 'openapi/v20111101.yml'
13+
filepath: 'openapi/v20111101.yaml'
1414
- name: Validate OpenAPI YAML
1515
uses: ibiqlik/action-yamllint@v3
1616
with:
17-
file_or_dir: openapi/v20111101.yml
17+
file_or_dir: openapi/v20111101.yaml
1818
config_file: .yamllint.yml

.github/workflows/version.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,8 @@ jobs:
1818
with:
1919
files: openapi/v20111101.yml
2020

21-
- name: Require version label if openapi spec changed
22-
if: steps.changed-files-specific.outputs.any_changed == 'true'
23-
uses: mheap/github-action-required-labels@v4
24-
with:
25-
mode: exactly
26-
count: 1
27-
labels: "major, minor, patch"
28-
add_comment: true
29-
message: "This PR is blocked until you add one of the following labels: {{ provided }}. Once added you can merge."
21+
- name: Require version label on OpenAPI change
22+
if: contains(github.event.pull_request.labels.*.name, 'needs version')
23+
run: |
24+
files=$(git diff --name-only origin/master...HEAD)
25+
if echo "$files" | grep -q "openapi/v20111101.yaml"; then

0 commit comments

Comments
 (0)