Skip to content

Commit

Permalink
Explicitly exit after this action runs to not wait for hanging promises
Browse files Browse the repository at this point in the history
* See #543
  • Loading branch information
eregon committed Nov 7, 2023
1 parent 552f83f commit 036ef45
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 036ef45

Please sign in to comment.