Skip to content

Commit e994e50

Browse files
Don't run on single line.
1 parent ff7e061 commit e994e50

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -196,18 +196,18 @@ jobs:
196196
run: ./charts/gxf-cucumber-tests/template-apply.sh --imageTag $(echo -e "${{ needs.docker.outputs.tags }}" | head -n 1 | cut -d':' -f2) --valuesFile ${{ matrix.values_file }}
197197
- name: Wait for jobs to finish
198198
id: cucumber_job
199-
run: >
199+
run: |
200200
if ! kubectl wait --for=condition=complete --all jobs --timeout=30m; then
201201
echo "::error::Kubectl timed out...";
202202
kubectl get events --all-namespaces --sort-by='.metadata.creationTimestamp' 2> kube_events.log
203203
for pod in $(kubectl get pod --field-selector=status.phase==Running -o name); do
204-
echo "::debug:: Created logs for pod $pod"
205-
kubectl logs $pod --all-containers=true 2> ${pod}.log
204+
echo "::debug:: Created logs for pod $pod";
205+
kubectl logs $pod --all-containers=true 2> ${pod}.log ;
206206
done;
207-
kubectl get pods 2> kube_status.log
208-
echo "status=ERROR" >> $GITHUB_OUTPUT
209-
fi
210-
echo "status=SUCCES" >> $GITHUB_OUTPUT
207+
kubectl get pods 2> kube_status.log;
208+
echo "status=ERROR" >> $GITHUB_OUTPUT;
209+
fi;
210+
echo "status=SUCCES" >> $GITHUB_OUTPUT;
211211
- name: Upload error logs
212212
uses: actions/upload-artifact@v4
213213
with:
@@ -216,8 +216,8 @@ jobs:
216216
if-no-files-found: ignore
217217
overwrite: true
218218
- name: Fail on error
219-
run: >
220-
if ${{ steps.cucumber_job.outputs.status }} == "ERROR";
219+
run: |
220+
if [ ${{ steps.cucumber_job.outputs.status }} = "ERROR" ];
221221
then
222222
exit 1;
223223
fi

0 commit comments

Comments
 (0)