Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 17 additions & 5 deletions .github/workflows/manual_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ on:
required: false
shutdown_timeout:
description: "Shutdown grace period (in seconds)."
default: 60
default: 30
required: true
finish_timeout:
description: "Shutdown grace period (in seconds) when manually stopped."
Expand Down Expand Up @@ -59,13 +59,25 @@ jobs:
actions_preinstalled: ${{ inputs.actions_preinstalled }}
shutdown_timeout: ${{ inputs.shutdown_timeout }}

test:
test1:
needs: create-runner
runs-on: ${{ needs.create-runner.outputs.label }}
steps:
- run: echo "This runs on the GCE runner VM"
- name: Job 1 Test
run: echo "This runs on the GCE runner VM"

test2:
needs:
- create-runner
- test1
runs-on: ${{ needs.create-runner.outputs.label }}
steps:
- name: Wait for longer than shutdown timeout
run: sleep 60 #Give time for runner to shutdown from shutdown timeout

- name: Job 2 Test
run: echo "This also runs on the GCE runner VM"
- uses: iunu/gce-github-runner@iunu
with:
command: stop
finish_timeout: ${{ inputs.finish_timeout }}
if: always()
if: always()
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ jobs:
run: echo "This runs on the GCE runner VM"

test2:
needs: create-runner
needs:
- create-runner
- test1
runs-on: ${{ needs.create-runner.outputs.label }}
steps:
- name: Wait for longer than shutdown timeout
Expand Down
2 changes: 1 addition & 1 deletion action.sh
Original file line number Diff line number Diff line change
Expand Up @@ -374,4 +374,4 @@ case "$command" in
usage
exit 1
;;
esac
esac
Loading