From e3354019f9e22264d2548df5723e7913540746f7 Mon Sep 17 00:00:00 2001 From: Donovan Sydow Date: Thu, 16 Jan 2025 15:53:09 -0800 Subject: [PATCH 1/3] require previous test --- .github/workflows/manual_test.yml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/manual_test.yml b/.github/workflows/manual_test.yml index 0b14068..95cde19 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 From facfacb5d7da35c5141940d3d36e54be2c7b2596 Mon Sep 17 00:00:00 2001 From: Donovan Sydow Date: Thu, 16 Jan 2025 15:53:26 -0800 Subject: [PATCH 2/3] update manual test --- .github/workflows/test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 From b84b3c8ee0441a2b647fe8df3c41453083a1da24 Mon Sep 17 00:00:00 2001 From: Donovan Sydow Date: Thu, 16 Jan 2025 16:07:28 -0800 Subject: [PATCH 3/3] pre-commit new line fix --- .github/workflows/manual_test.yml | 2 +- action.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/manual_test.yml b/.github/workflows/manual_test.yml index 95cde19..a485164 100644 --- a/.github/workflows/manual_test.yml +++ b/.github/workflows/manual_test.yml @@ -80,4 +80,4 @@ jobs: - uses: iunu/gce-github-runner@iunu with: command: stop - if: always() \ No newline at end of file + if: always() 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