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 7
7
type : boolean
8
8
description : " Boolean to enable the API breakage check job. Defaults to true."
9
9
default : true
10
+ api_breakage_check_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 : " "
10
14
api_breakage_check_container_image :
11
15
type : string
12
16
description : " Container image for the API breakage check job. Defaults to latest Swift Ubuntu image."
89
93
- name : Run API breakage check
90
94
run : |
91
95
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_check_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_check_allowlist_path }}'
100
+ fi
93
101
94
102
docs-check :
95
103
name : Documentation check
@@ -217,6 +225,7 @@ jobs:
217
225
curl -s https://raw.githubusercontent.com/swiftlang/github-workflows/refs/heads/main/.github/workflows/configs/yamllint.yml > .yamllint.yml
218
226
fi
219
227
yamllint --strict --config-file .yamllint.yml .
228
+
220
229
python-lint-check :
221
230
name : Python lint check
222
231
if : ${{ inputs.python_lint_check_enabled }}
You can’t perform that action at this time.
0 commit comments