55
55
version : 3.x
56
56
57
57
- name : Validate ClangFormat configuration files
58
- run : task --silent clang-format:validate
58
+ run : |
59
+ task \
60
+ --silent \
61
+ clang-format:validate
59
62
60
63
check-config :
61
64
runs-on : ubuntu-latest
79
82
else
80
83
echo "CLANG_FORMAT_VERSION=${{ github.event.inputs.clang-format-version }}" >> "$GITHUB_ENV"
81
84
fi
85
+
82
86
echo "CLANG_FORMAT_INSTALL_PATH=${{ runner.temp }}/clang-format" >> "$GITHUB_ENV"
83
87
echo "YQ_INSTALL_PATH=${{ runner.temp }}/yq" >> "$GITHUB_ENV"
84
88
echo "WORKING_FOLDER=${{ runner.temp }}" >> "$GITHUB_ENV"
95
99
- name : Install ClangFormat
96
100
run : |
97
101
cd "${{ env.CLANG_FORMAT_INSTALL_PATH }}"
98
- tar --extract --file="${{ steps.download-clang-format.outputs.name }}"
102
+
103
+ tar \
104
+ --extract \
105
+ --file="${{ steps.download-clang-format.outputs.name }}"
106
+
99
107
# Add installation to PATH:
100
108
# See: https://docs.github.com/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#adding-a-system-path
101
109
echo "${{ env.CLANG_FORMAT_INSTALL_PATH }}/clang_Linux_64bit" >> "$GITHUB_PATH"
@@ -111,7 +119,11 @@ jobs:
111
119
- name : Install yq
112
120
run : |
113
121
cd "${{ env.YQ_INSTALL_PATH }}"
114
- tar --extract --file="${{ steps.download-yq.outputs.name }}"
122
+
123
+ tar \
124
+ --extract \
125
+ --file="${{ steps.download-yq.outputs.name }}"
126
+
115
127
# Add installation to PATH:
116
128
# See: https://docs.github.com/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#adding-a-system-path
117
129
echo "${{ env.YQ_INSTALL_PATH }}/yq" >> "$GITHUB_PATH"
@@ -156,6 +168,7 @@ jobs:
156
168
else
157
169
echo "CLANG_FORMAT_VERSION=${{ github.event.inputs.clang-format-version }}" >> "$GITHUB_ENV"
158
170
fi
171
+
159
172
echo "CLANG_FORMAT_INSTALL_PATH=${{ runner.temp }}/clang-format" >> "$GITHUB_ENV"
160
173
echo "WORKING_FOLDER=${{ runner.temp }}" >> "$GITHUB_ENV"
161
174
@@ -171,7 +184,11 @@ jobs:
171
184
- name : Install ClangFormat
172
185
run : |
173
186
cd "${{ env.CLANG_FORMAT_INSTALL_PATH }}"
174
- tar --extract --file="${{ steps.download.outputs.name }}"
187
+
188
+ tar \
189
+ --extract \
190
+ --file="${{ steps.download.outputs.name }}"
191
+
175
192
# Add installation to PATH:
176
193
# See: https://docs.github.com/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#adding-a-system-path
177
194
echo "${{ env.CLANG_FORMAT_INSTALL_PATH }}/clang_Linux_64bit" >> "$GITHUB_PATH"
@@ -209,7 +226,10 @@ jobs:
209
226
version : 3.x
210
227
211
228
- name : Check ClangFormat test data
212
- run : task --silent clang-format:check-testdata
229
+ run : |
230
+ task \
231
+ --silent \
232
+ clang-format:check-testdata
213
233
214
234
convert :
215
235
runs-on : ubuntu-latest
0 commit comments