Skip to content

Commit fa2aff7

Browse files
committed
Standardize formatting of shell code in tasks and workflows
Shell scripts in Arduino tooling projects are formatted according to the style implemented by the shfmt formatting tool. In addition to standalone script files, significant quantities of complex shell code is also found in the asset tasks and workflows. shfmt can not be used to format this code (both due to the fact it is in the form of strings in YAML documents, and due to the fact that it is actually templates of shell code (making use of the templating features of Task and GitHub Actions) rather than complete shell code). However, it still makes sense to align the formatting of this code with the standardized shell code style where doing so is feasible.
1 parent 5b594e7 commit fa2aff7

13 files changed

+21
-21
lines changed

.github/workflows/check-general-formatting-task.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
RESULT="false"
3636
fi
3737
38-
echo "result=$RESULT" >> $GITHUB_OUTPUT
38+
echo "result=$RESULT" >>$GITHUB_OUTPUT
3939
4040
check:
4141
needs: run-determination
@@ -48,7 +48,7 @@ jobs:
4848
- name: Set environment variables
4949
run: |
5050
# See: https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#setting-an-environment-variable
51-
echo "EC_INSTALL_PATH=${{ runner.temp }}/editorconfig-checker" >> "$GITHUB_ENV"
51+
echo "EC_INSTALL_PATH=${{ runner.temp }}/editorconfig-checker" >>"$GITHUB_ENV"
5252
5353
- name: Checkout repository
5454
uses: actions/checkout@v5
@@ -80,7 +80,7 @@ jobs:
8080
"${{ env.EC_INSTALL_PATH }}/bin/ec"
8181
# Add installation to PATH:
8282
# See: https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-system-path
83-
echo "${{ env.EC_INSTALL_PATH }}/bin" >> "$GITHUB_PATH"
83+
echo "${{ env.EC_INSTALL_PATH }}/bin" >>"$GITHUB_PATH"
8484
8585
- name: Check formatting
8686
run: |

.github/workflows/check-go-dependencies-task.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
RESULT="false"
5454
fi
5555
56-
echo "result=$RESULT" >> $GITHUB_OUTPUT
56+
echo "result=$RESULT" >>$GITHUB_OUTPUT
5757
5858
check-cache:
5959
needs: run-determination

.github/workflows/check-go-task.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
RESULT="false"
4848
fi
4949
50-
echo "result=$RESULT" >> $GITHUB_OUTPUT
50+
echo "result=$RESULT" >>$GITHUB_OUTPUT
5151
5252
check-errors:
5353
name: check-errors (${{ matrix.module.path }})

.github/workflows/check-license.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
RESULT="false"
5151
fi
5252
53-
echo "result=$RESULT" >> $GITHUB_OUTPUT
53+
echo "result=$RESULT" >>$GITHUB_OUTPUT
5454
5555
check-license:
5656
name: ${{ matrix.check-license.path }}

.github/workflows/check-markdown-task.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
RESULT="false"
6060
fi
6161
62-
echo "result=$RESULT" >> $GITHUB_OUTPUT
62+
echo "result=$RESULT" >>$GITHUB_OUTPUT
6363
6464
lint:
6565
needs: run-determination

.github/workflows/check-npm-task.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
RESULT="false"
4848
fi
4949
50-
echo "result=$RESULT" >> $GITHUB_OUTPUT
50+
echo "result=$RESULT" >>$GITHUB_OUTPUT
5151
5252
validate:
5353
name: validate (${{ matrix.project.path }})

.github/workflows/check-poetry-task.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
RESULT="false"
4444
fi
4545
46-
echo "result=$RESULT" >> $GITHUB_OUTPUT
46+
echo "result=$RESULT" >>$GITHUB_OUTPUT
4747
4848
validate:
4949
needs: run-determination

.github/workflows/check-prettier-formatting-task.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ jobs:
243243
RESULT="false"
244244
fi
245245
246-
echo "result=$RESULT" >> $GITHUB_OUTPUT
246+
echo "result=$RESULT" >>$GITHUB_OUTPUT
247247
248248
check:
249249
needs: run-determination

.github/workflows/check-taskfiles.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
RESULT="false"
5050
fi
5151
52-
echo "result=$RESULT" >> $GITHUB_OUTPUT
52+
echo "result=$RESULT" >>$GITHUB_OUTPUT
5353
5454
validate:
5555
name: Validate ${{ matrix.file }}

.github/workflows/check-yaml-task.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
RESULT="false"
6666
fi
6767
68-
echo "result=$RESULT" >> $GITHUB_OUTPUT
68+
echo "result=$RESULT" >>$GITHUB_OUTPUT
6969
7070
check:
7171
name: ${{ matrix.configuration.name }}

0 commit comments

Comments
 (0)