diff --git a/.github/workflows/manual_test.yml b/.github/workflows/manual_test.yml index 0b14068..a485164 100644 --- a/.github/workflows/manual_test.yml +++ b/.github/workflows/manual_test.yml @@ -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." @@ -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() \ No newline at end of file + if: always() diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 289b071..c8de68b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 diff --git a/action.sh b/action.sh index ab0b231..ee6e955 100755 --- a/action.sh +++ b/action.sh @@ -374,4 +374,4 @@ case "$command" in usage exit 1 ;; -esac \ No newline at end of file +esac