@@ -106,7 +106,7 @@ jobs:
106
106
submodules : true
107
107
- name : Run documentation check
108
108
run : |
109
- apt-get -qq update && apt-get -qq -y install curl yq
109
+ which curl yq || ( apt -q update && apt -yq install curl yq)
110
110
curl -s https://raw.githubusercontent.com/swiftlang/github-workflows/refs/heads/main/.github/workflows/scripts/check-docs.sh | bash
111
111
112
112
unacceptable-language-check :
@@ -173,7 +173,7 @@ jobs:
173
173
run : git config --global --add safe.directory ${GITHUB_WORKSPACE}
174
174
- name : Run format check
175
175
run : |
176
- apt-get -qq update && apt-get -qq -y install curl
176
+ which curl || ( apt -q update && apt -yq install curl)
177
177
curl -s https://raw.githubusercontent.com/swiftlang/github-workflows/refs/heads/main/.github/workflows/scripts/check-swift-format.sh | bash
178
178
179
179
shell-check :
@@ -194,7 +194,7 @@ jobs:
194
194
run : git config --global --add safe.directory ${GITHUB_WORKSPACE}
195
195
- name : Run shellcheck
196
196
run : |
197
- apt-get -qq update && apt-get -qq -y install shellcheck
197
+ which shellcheck || ( apt -q update && apt -yq install shellcheck)
198
198
git ls-files -z '*.sh' | xargs -0 --no-run-if-empty shellcheck
199
199
200
200
yaml-lint-check :
@@ -210,7 +210,7 @@ jobs:
210
210
submodules : true
211
211
- name : Run yamllint
212
212
run : |
213
- which yamllint >/dev/null || ( apt-get update && apt-get install -y yamllint )
213
+ which yamllint || (apt -q update && apt install -yq yamllint)
214
214
cd ${GITHUB_WORKSPACE}
215
215
if [ ! -f ".yamllint.yml" ]; then
216
216
echo "Downloading default yamllint config file"
0 commit comments