Skip to content

Commit 250d86c

Browse files
committed
Add input
1 parent f22b188 commit 250d86c

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/create-vm.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ on:
77
type: string
88
required: false
99
default: "default"
10+
# If set, use this label instead of generating a random one (and 'task' will be ignored).
11+
# Useful to recreate a runner VM that got shutdown.
12+
label:
13+
type: string
14+
required: false
15+
default: ""
1016
secrets:
1117
gcp_credentials:
1218
required: true
@@ -30,19 +36,19 @@ jobs:
3036
uses: actions/checkout@v4
3137
- name: Authenticate to Google Cloud
3238
id: auth
33-
if: github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name
39+
if: github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name
3440
uses: google-github-actions/auth@v1
3541
with:
3642
credentials_json: ${{ secrets.gcp_credentials }}
3743
- name: Activate GCP service account
3844
id: gcloud-auth
39-
if: github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name
45+
if: github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name
4046
shell: bash
4147
run: |
4248
gcloud auth activate-service-account --key-file ${{ steps.auth.outputs.credentials_file_path }}
4349
- id: create-runner
4450
uses: gitpod-io/gce-github-runner@main
4551
with:
4652
runner_token: ${{ secrets.runner_token }}
47-
task: ${{ inputs.task }}
53+
task: ${{ inputs.task }}
4854
gcp_credentials: ${{ secrets.gcp_credentials }}

0 commit comments

Comments
 (0)