Skip to content

Commit e7b3fa5

Browse files
author
paulus
committed
Moved status error assignment to top.
1 parent 4bb96cf commit e7b3fa5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,13 +200,13 @@ jobs:
200200
run: |
201201
if ! kubectl wait --for=condition=complete --all jobs --timeout=10s; then
202202
echo "::error::Kubectl timed out...";
203+
echo "status=ERROR" >> $GITHUB_OUTPUT;
203204
kubectl get events --all-namespaces --sort-by='.metadata.creationTimestamp' 2> kube_events.log
204205
for pod in $(kubectl get pod --field-selector=status.phase==Running -o name); do
205206
echo "::debug:: Created logs for pod $pod";
206207
kubectl logs $pod --all-containers=true 2> ${pod}.log ;
207208
done;
208209
kubectl get pods 2> kube_status.log;
209-
echo "status='ERROR'" >> $GITHUB_OUTPUT;
210210
exit 1
211211
fi;
212212
echo "status=SUCCES" >> $GITHUB_OUTPUT;

0 commit comments

Comments
 (0)