4
4
# See: https://github.com/actions/setup-node/#readme
5
5
NODE_VERSION : 16.x
6
6
7
- # See: https://docs.github.com/actions/using -workflows/events-that-trigger-workflows
7
+ # See: https://docs.github.com/actions/writing -workflows/choosing-when-your-workflow-runs /events-that-trigger-workflows
8
8
on :
9
9
push :
10
10
paths :
75
75
76
76
- name : Set environment variables
77
77
run : |
78
- # See: https://docs.github.com/actions/using -workflows/workflow-commands-for-github-actions#setting-an-environment-variable
78
+ # See: https://docs.github.com/actions/writing -workflows/choosing-what-your-workflow-does /workflow-commands-for-github-actions#setting-an-environment-variable
79
79
if [[ "${{ github.event.inputs.clang-format-version }}" == "" ]]; then
80
80
echo "CLANG_FORMAT_VERSION=$(task clang-format:get-version)" >> "$GITHUB_ENV"
81
81
else
99
99
cd "${{ env.CLANG_FORMAT_INSTALL_PATH }}"
100
100
tar --extract --file="${{ steps.download-clang-format.outputs.name }}"
101
101
# Add installation to PATH:
102
- # See: https://docs.github.com/actions/using -workflows/workflow-commands-for-github-actions#adding-a-system-path
102
+ # See: https://docs.github.com/actions/writing -workflows/choosing-what-your-workflow-does /workflow-commands-for-github-actions#adding-a-system-path
103
103
echo "${{ env.CLANG_FORMAT_INSTALL_PATH }}/clang_Linux_64bit" >> "$GITHUB_PATH"
104
104
105
105
- name : Download yq
@@ -115,7 +115,7 @@ jobs:
115
115
cd "${{ env.YQ_INSTALL_PATH }}"
116
116
tar --extract --file="${{ steps.download-yq.outputs.name }}"
117
117
# Add installation to PATH:
118
- # See: https://docs.github.com/actions/using -workflows/workflow-commands-for-github-actions#adding-a-system-path
118
+ # See: https://docs.github.com/actions/writing -workflows/choosing-what-your-workflow-does /workflow-commands-for-github-actions#adding-a-system-path
119
119
echo "${{ env.YQ_INSTALL_PATH }}/yq" >> "$GITHUB_PATH"
120
120
121
121
- name : Check ClangFormat configuration file
@@ -152,7 +152,7 @@ jobs:
152
152
153
153
- name : Set environment variables
154
154
run : |
155
- # See: https://docs.github.com/actions/using -workflows/workflow-commands-for-github-actions#setting-an-environment-variable
155
+ # See: https://docs.github.com/actions/writing -workflows/choosing-what-your-workflow-does /workflow-commands-for-github-actions#setting-an-environment-variable
156
156
if [[ "${{ github.event.inputs.clang-format-version }}" == "" ]]; then
157
157
echo "CLANG_FORMAT_VERSION=$(task clang-format:get-version)" >> "$GITHUB_ENV"
158
158
else
@@ -175,7 +175,7 @@ jobs:
175
175
cd "${{ env.CLANG_FORMAT_INSTALL_PATH }}"
176
176
tar --extract --file="${{ steps.download.outputs.name }}"
177
177
# Add installation to PATH:
178
- # See: https://docs.github.com/actions/using -workflows/workflow-commands-for-github-actions#adding-a-system-path
178
+ # See: https://docs.github.com/actions/writing -workflows/choosing-what-your-workflow-does /workflow-commands-for-github-actions#adding-a-system-path
179
179
echo "${{ env.CLANG_FORMAT_INSTALL_PATH }}/clang_Linux_64bit" >> "$GITHUB_PATH"
180
180
181
181
- name : Check ClangFormat output
@@ -220,7 +220,7 @@ jobs:
220
220
steps :
221
221
- name : Set environment variables
222
222
run : |
223
- # See: https://docs.github.com/actions/using -workflows/workflow-commands-for-github-actions#setting-an-environment-variable
223
+ # See: https://docs.github.com/actions/writing -workflows/choosing-what-your-workflow-does /workflow-commands-for-github-actions#setting-an-environment-variable
224
224
echo "CONVERSION_OUTPUT_PATH=${{ runner.temp }}/clang-format-js-object.txt" >> "$GITHUB_ENV"
225
225
226
226
- name : Checkout repository
0 commit comments