File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 77 type : boolean
88 description : " Boolean to enable the API breakage check job. Defaults to true."
99 default : true
10+ api_breakage_allowlist_path :
11+ type : string
12+ description : " Path to a file that will be passed as --breakage-allowlist-path to swift package diagnose-api-breaking-changes"
13+ default : " "
1014 api_breakage_check_container_image :
1115 type : string
1216 description : " Container image for the API breakage check job. Defaults to latest Swift Ubuntu image."
8993 - name : Run API breakage check
9094 run : |
9195 git fetch ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY} ${GITHUB_BASE_REF}:pull-base-ref
92- swift package diagnose-api-breaking-changes pull-base-ref
96+ if [[ -z '${{ inputs.api_breakage_allowlist_path }}' ]]; then
97+ swift package diagnose-api-breaking-changes pull-base-ref
98+ else
99+ swift package diagnose-api-breaking-changes pull-base-ref --breakage-allowlist-path '${{ inputs.api_breakage_allowlist_path }}'
100+ fi
93101
94102 docs-check :
95103 name : Documentation check
@@ -217,6 +225,7 @@ jobs:
217225 curl -s https://raw.githubusercontent.com/swiftlang/github-workflows/refs/heads/main/.github/workflows/configs/yamllint.yml > .yamllint.yml
218226 fi
219227 yamllint --strict --config-file .yamllint.yml .
228+
220229 python-lint-check :
221230 name : Python lint check
222231 if : ${{ inputs.python_lint_check_enabled }}
You can’t perform that action at this time.
0 commit comments