mirror of
https://github.com/dagger/dagger-for-github.git
synced 2026-01-01 13:10:18 +11:00
remove unnecessary engine-stop (#188)
* remove unnecessary engine-stop Signed-off-by: kpenfound <kyle@dagger.io> * add deprecationMessage Signed-off-by: kpenfound <kyle@dagger.io> --------- Signed-off-by: kpenfound <kyle@dagger.io>
This commit is contained in:
parent
4e0ad19142
commit
c8eadbd788
2 changed files with 4 additions and 13 deletions
12
action.yml
12
action.yml
|
|
@ -33,9 +33,9 @@ inputs:
|
|||
required: false
|
||||
default: ""
|
||||
engine-stop:
|
||||
description: "Whether to stop the Dagger Engine after this run"
|
||||
description: "Deprecated"
|
||||
deprecationMessage: "engine-stop is now a no-op and will be removed in a future release"
|
||||
required: false
|
||||
default: "true"
|
||||
call:
|
||||
description: "Function and arguments for dagger call"
|
||||
required: false
|
||||
|
|
@ -128,11 +128,3 @@ runs:
|
|||
if [[ -n "$trace_url" ]]; then
|
||||
echo "traceURL=$trace_url" >> "$GITHUB_OUTPUT"
|
||||
fi
|
||||
|
||||
- if: (inputs.call != '' || inputs.args != '') && inputs.engine-stop == 'true'
|
||||
shell: bash
|
||||
run: |
|
||||
mapfile -t containers < <(docker ps --filter name="dagger-engine-*" -q)
|
||||
if [[ "${#containers[@]}" -gt 0 ]]; then
|
||||
docker stop -t 300 "${containers[@]}";
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue