File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -211,8 +211,12 @@ jobs:
211211 - name : Run yamllint
212212 run : |
213213 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 .
216220 python-lint-check :
217221 name : Python lint check
218222 if : ${{ inputs.python_lint_check_enabled }}
You can’t perform that action at this time.
0 commit comments