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