From e86a41a730841597c2b728134e83596e4e9c7804 Mon Sep 17 00:00:00 2001 From: Jeremy Adams Date: Fri, 29 Dec 2023 23:15:30 -0800 Subject: [PATCH] Add option to not kill Engine Signed-off-by: Jeremy Adams --- README.md | 2 +- action.yml | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 327f455..f10f16c 100644 --- a/README.md +++ b/README.md @@ -38,4 +38,4 @@ | `cloud-token` | Dagger Cloud Token | false | '' | | `module` | Dagger module to call. Local or Git | false | '' | | `args` | Arguments to pass to CLI | false | '' | - +| `engine-stop` | Whether to stop the Dagger Engine after this run | false | 'true' | diff --git a/action.yml b/action.yml index 0147ad3..f12ab1e 100644 --- a/action.yml +++ b/action.yml @@ -29,6 +29,10 @@ inputs: description: 'Arguments to pass to CLI' required: false default: '' + engine-stop: + description: 'Whether to stop the Dagger Engine after this run' + required: false + default: 'true' runs: using: "composite" steps: @@ -64,4 +68,4 @@ runs: docker stop -t 300 "${containers[@]}"; fi shell: bash - if: ${{ always() }} + if: inputs.engine-stop == 'true'