Skip to content

Commit

Permalink
Add option to not kill Engine
Browse files Browse the repository at this point in the history
Signed-off-by: Jeremy Adams <jeremy@dagger.io>
  • Loading branch information
jpadams committed Jan 3, 2024
1 parent c2ba971 commit e86a41a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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' |
6 changes: 5 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -64,4 +68,4 @@ runs:
docker stop -t 300 "${containers[@]}";
fi
shell: bash
if: ${{ always() }}
if: inputs.engine-stop == 'true'

0 comments on commit e86a41a

Please sign in to comment.