Skip to content

Commit 219f0c7

Browse files
committed
Improve string interpolation
1 parent 94fab6a commit 219f0c7

1 file changed

Lines changed: 12 additions & 13 deletions

File tree

action.yml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,8 @@ runs:
102102
shell: bash
103103
env:
104104
EXTRAS: ${{ inputs.extras }}
105-
MANAGEMENT_TOOL: ${{ steps.compat.outputs.management_tool }}
106105
run: |
107-
if [[ "$MANAGEMENT_TOOL" == "uv" ]]; then
106+
if [[ "${{ steps.compat.outputs.management_tool }}" == "uv" ]]; then
108107
echo "This is a PYPI package (installed with uv)."
109108
PIP_INSTALL="uv pip install --system"
110109
else
@@ -117,20 +116,20 @@ runs:
117116
$PIP_INSTALL -e ".[$EXTRAS]"
118117
fi
119118
120-
if [[ ${{ inputs.run_prebuild }} = "true" ]]; then
119+
if [[ "${{ inputs.run_prebuild }}" = "true" ]]; then
121120
echo Running pre-build task
122121
invoke pre-build
123122
fi;
124123
125-
if [[ ${{ inputs.invoke_lint }} == "true" ]]; then
124+
if [[ "${{ inputs.invoke_lint }}" == "true" ]]; then
126125
invoke lint
127126
fi;
128127
129-
if [[ ${{ inputs.check_import }} == "true" ]]; then
128+
if [[ "${{ inputs.check_import }}" == "true" ]]; then
130129
python -m compas
131130
fi;
132131
133-
if [[ ${{ inputs.invoke_test }} == "true" ]]; then
132+
if [[ "${{ inputs.invoke_test }}" == "true" ]]; then
134133
invoke test
135134
fi;
136135
@@ -165,13 +164,13 @@ runs:
165164
run: |
166165
echo "This is a conda package."
167166
168-
if [[ ${{ runner.os }} == "Windows" && -f env_win.yml ]]; then
167+
if [[ "${{ runner.os }}" == "Windows" && -f env_win.yml ]]; then
169168
echo using env_win.yml
170169
conda env update -f env_win.yml -n compas
171-
elif [[ ${{ runner.os }} == "macOS" && -f env_osx.yml ]]; then
170+
elif [[ "${{ runner.os }}" == "macOS" && -f env_osx.yml ]]; then
172171
echo using env_osx.yml
173172
conda env update -f env_osx.yml -n compas
174-
elif [[ ${{ runner.os }} == "Linux" && -f env_linux.yml ]]; then
173+
elif [[ "${{ runner.os }}" == "Linux" && -f env_linux.yml ]]; then
175174
echo using env_linux.yml
176175
conda env update -f env_linux.yml -n compas
177176
elif [[ -f environment.yml ]]; then
@@ -182,20 +181,20 @@ runs:
182181
exit 1
183182
fi
184183
185-
if [[ ${{ inputs.run_prebuild }} = "true" ]]; then
184+
if [[ "${{ inputs.run_prebuild }}" = "true" ]]; then
186185
echo Running pre-build task
187186
invoke pre-build
188187
fi;
189188
190-
if [[ ${{ inputs.invoke_lint }} = "true" ]]; then
189+
if [[ "${{ inputs.invoke_lint }}" = "true" ]]; then
191190
invoke lint
192191
fi;
193192
194-
if [[ ${{ inputs.check_import }} = "true" ]]; then
193+
if [[ "${{ inputs.check_import }}" = "true" ]]; then
195194
python -m compas
196195
fi;
197196
198-
if [[ ${{ inputs.invoke_test }} = "true" ]]; then
197+
if [[ "${{ inputs.invoke_test }}" = "true" ]]; then
199198
invoke test
200199
fi;
201200

0 commit comments

Comments
 (0)