5555 version : 3.x
5656
5757 - name : Validate ClangFormat configuration files
58- run : task --silent clang-format:validate
58+ run : |
59+ task \
60+ --silent \
61+ clang-format:validate
5962
6063 check-config :
6164 runs-on : ubuntu-latest
7982 else
8083 echo "CLANG_FORMAT_VERSION=${{ github.event.inputs.clang-format-version }}" >> "$GITHUB_ENV"
8184 fi
85+
8286 echo "CLANG_FORMAT_INSTALL_PATH=${{ runner.temp }}/clang-format" >> "$GITHUB_ENV"
8387 echo "YQ_INSTALL_PATH=${{ runner.temp }}/yq" >> "$GITHUB_ENV"
8488 echo "WORKING_FOLDER=${{ runner.temp }}" >> "$GITHUB_ENV"
9599 - name : Install ClangFormat
96100 run : |
97101 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+
99107 # Add installation to PATH:
100108 # See: https://docs.github.com/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#adding-a-system-path
101109 echo "${{ env.CLANG_FORMAT_INSTALL_PATH }}/clang_Linux_64bit" >> "$GITHUB_PATH"
@@ -111,7 +119,11 @@ jobs:
111119 - name : Install yq
112120 run : |
113121 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+
115127 # Add installation to PATH:
116128 # See: https://docs.github.com/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#adding-a-system-path
117129 echo "${{ env.YQ_INSTALL_PATH }}/yq" >> "$GITHUB_PATH"
@@ -156,6 +168,7 @@ jobs:
156168 else
157169 echo "CLANG_FORMAT_VERSION=${{ github.event.inputs.clang-format-version }}" >> "$GITHUB_ENV"
158170 fi
171+
159172 echo "CLANG_FORMAT_INSTALL_PATH=${{ runner.temp }}/clang-format" >> "$GITHUB_ENV"
160173 echo "WORKING_FOLDER=${{ runner.temp }}" >> "$GITHUB_ENV"
161174
@@ -171,7 +184,11 @@ jobs:
171184 - name : Install ClangFormat
172185 run : |
173186 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+
175192 # Add installation to PATH:
176193 # See: https://docs.github.com/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#adding-a-system-path
177194 echo "${{ env.CLANG_FORMAT_INSTALL_PATH }}/clang_Linux_64bit" >> "$GITHUB_PATH"
@@ -209,7 +226,10 @@ jobs:
209226 version : 3.x
210227
211228 - name : Check ClangFormat test data
212- run : task --silent clang-format:check-testdata
229+ run : |
230+ task \
231+ --silent \
232+ clang-format:check-testdata
213233
214234 convert :
215235 runs-on : ubuntu-latest
0 commit comments