File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 7
7
type : string
8
8
required : false
9
9
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 : " "
10
16
secrets :
11
17
gcp_credentials :
12
18
required : true
@@ -30,19 +36,19 @@ jobs:
30
36
uses : actions/checkout@v4
31
37
- name : Authenticate to Google Cloud
32
38
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
34
40
uses : google-github-actions/auth@v1
35
41
with :
36
42
credentials_json : ${{ secrets.gcp_credentials }}
37
43
- name : Activate GCP service account
38
44
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
40
46
shell : bash
41
47
run : |
42
48
gcloud auth activate-service-account --key-file ${{ steps.auth.outputs.credentials_file_path }}
43
49
- id : create-runner
44
50
uses : gitpod-io/gce-github-runner@main
45
51
with :
46
52
runner_token : ${{ secrets.runner_token }}
47
- task : ${{ inputs.task }}
53
+ task : ${{ inputs.task }}
48
54
gcp_credentials : ${{ secrets.gcp_credentials }}
You can’t perform that action at this time.
0 commit comments