File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -211,8 +211,12 @@ jobs:
211
211
- name : Run yamllint
212
212
run : |
213
213
which yamllint >/dev/null || ( apt-get update && apt-get install -y yamllint )
214
- curl -s https://raw.githubusercontent.com/swiftlang/github-workflows/refs/heads/main/.github/workflows/configs/yamllint.yml > /tmp/yamllint.yml
215
- yamllint --strict --config-file /tmp/yamllint.yml ${GITHUB_WORKSPACE}
214
+ cd ${GITHUB_WORKSPACE}
215
+ if [ ! -f ".yamllint.yml" ]; then
216
+ echo "Downloading default yamllint config file"
217
+ curl -s https://raw.githubusercontent.com/swiftlang/github-workflows/refs/heads/main/.github/workflows/configs/yamllint.yml > .yamllint.yml
218
+ fi
219
+ yamllint --strict --config-file .yamllint.yml .
216
220
python-lint-check :
217
221
name : Python lint check
218
222
if : ${{ inputs.python_lint_check_enabled }}
You can’t perform that action at this time.
0 commit comments