From 99704aa27256115ba1475e10681ded189afe43a5 Mon Sep 17 00:00:00 2001 From: PPawlowski Date: Mon, 21 Sep 2026 10:27:35 +0200 Subject: [PATCH 1/3] Increase timeout to 30 minutes --- actions/update-nr-flows/action.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/actions/update-nr-flows/action.yml b/actions/update-nr-flows/action.yml index 224366a..822d04c 100644 --- a/actions/update-nr-flows/action.yml +++ b/actions/update-nr-flows/action.yml @@ -18,8 +18,8 @@ runs: URL=https://flows.nodered.org VERSION=$(echo "${{ inputs.version }}" | sed -e 's/^[^0-9]*//') COUNT=1 - until [ $COUNT -gt 5 ]; do - sleep 10 + until [ $COUNT -gt 30 ]; do + sleep 60 LATEST=`npm info "${{ inputs.package }}" --json version | sed -e 's/"//g'` echo "current version $LATEST" if [[ "$VERSION" == "$LATEST" ]] @@ -29,9 +29,9 @@ runs: ((COUNT++)) done - if [ $COUNT -gt 5 ] + if [ $COUNT -gt 30 ] then - echo "timed out after 50 seconds" + echo "timed out after 30 minutes" exit 1 fi From 2ae3ff8e40d07efb32c2f786f7ca7c7d28d78915 Mon Sep 17 00:00:00 2001 From: PPawlowski Date: Mon, 21 Sep 2026 10:28:44 +0200 Subject: [PATCH 2/3] Ensure local npm cache is omitted --- actions/update-nr-flows/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/update-nr-flows/action.yml b/actions/update-nr-flows/action.yml index 822d04c..ff7bf31 100644 --- a/actions/update-nr-flows/action.yml +++ b/actions/update-nr-flows/action.yml @@ -20,7 +20,7 @@ runs: COUNT=1 until [ $COUNT -gt 30 ]; do sleep 60 - LATEST=`npm info "${{ inputs.package }}" --json version | sed -e 's/"//g'` + LATEST=`npm info "${{ inputs.package }}" --json version --prefer-online | sed -e 's/"//g'` echo "current version $LATEST" if [[ "$VERSION" == "$LATEST" ]] then From d329603a5785f7b49ee9324238d611482283d323 Mon Sep 17 00:00:00 2001 From: PPawlowski Date: Mon, 21 Sep 2026 10:29:42 +0200 Subject: [PATCH 3/3] Simplify version string extract --- actions/update-nr-flows/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/update-nr-flows/action.yml b/actions/update-nr-flows/action.yml index ff7bf31..8a2be98 100644 --- a/actions/update-nr-flows/action.yml +++ b/actions/update-nr-flows/action.yml @@ -20,7 +20,7 @@ runs: COUNT=1 until [ $COUNT -gt 30 ]; do sleep 60 - LATEST=`npm info "${{ inputs.package }}" --json version --prefer-online | sed -e 's/"//g'` + LATEST=`npm info "${{ inputs.package }}" version --prefer-online` echo "current version $LATEST" if [[ "$VERSION" == "$LATEST" ]] then