File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments