File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 897
897
# Check if we're on a standard branch
898
898
if [[ "$BRANCH" != "develop" && ! "$BRANCH" =~ ^release/ ]]; then
899
899
echo "Warning: Running workflow from non-standard branch: $BRANCH"
900
- echo "This is allowed but may not be the intended behavior in production ."
900
+ echo "This is supported for testing purposes ."
901
901
read -p "Continue? [y/N] " -n 1 -r
902
902
echo
903
903
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
926
926
echo "The script will automatically exit when the workflow completes."
927
927
echo "Press Ctrl+C to stop watching (workflow will continue running)"
928
928
echo "----------------------------------------"
929
- gh run watch "$RUN_ID" --exit-status
929
+
930
+ # Try to watch the run, but handle network errors gracefully
931
+ while true; do
932
+ if gh run watch "$RUN_ID" --exit-status; then
933
+ break
934
+ else
935
+ echo "Network error while watching workflow. Retrying in 5 seconds..."
936
+ echo "You can also check the status manually with: gh run view $RUN_ID"
937
+ sleep 5
938
+ fi
939
+ done
930
940
EOL
931
941
chmod +x $out/bin/trigger-nix-build
932
942
'' ;
You can’t perform that action at this time.
0 commit comments