From 036ef458ddccddb148a2b9fb67e95a22fdbf728b Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Tue, 7 Nov 2023 18:57:31 +0100 Subject: [PATCH] Explicitly exit after this action runs to not wait for hanging promises * See https://github.com/ruby/setup-ruby/issues/543 --- dist/index.js | 3 +++ index.js | 3 +++ 2 files changed, 6 insertions(+) diff --git a/dist/index.js b/dist/index.js index 5f21f9bf3..4055d736b 100644 --- a/dist/index.js +++ b/dist/index.js @@ -65727,6 +65727,9 @@ async function run() { core.setFailed(error.stack) } } + // Explicit process.exit() to not wait hanging promises, + // see https://github.com/ruby/setup-ruby/issues/543 + process.exit() } // entry point when this action is run from other actions diff --git a/index.js b/index.js index e636b2ea6..a9735b567 100644 --- a/index.js +++ b/index.js @@ -30,6 +30,9 @@ export async function run() { core.setFailed(error.stack) } } + // Explicit process.exit() to not wait hanging promises, + // see https://github.com/ruby/setup-ruby/issues/543 + process.exit() } // entry point when this action is run from other actions