File tree Expand file tree Collapse file tree 5 files changed +33
-30
lines changed Expand file tree Collapse file tree 5 files changed +33
-30
lines changed Original file line number Diff line number Diff line change @@ -46,28 +46,24 @@ jobs:
46
46
uses : ' ./'
47
47
with :
48
48
skip_install : true
49
- skip_tool_cache : true
50
49
51
50
# Constraint installation
52
51
- name : ' Install constraint'
53
52
uses : ' ./'
54
53
with :
55
54
version : ' >= 1.0.0'
56
- skip_tool_cache : true
57
55
58
56
# Default installation
59
57
- name : ' Install version'
60
58
uses : ' ./'
61
59
with :
62
60
version : ' 374.0.0'
63
- skip_tool_cache : true
64
61
65
62
# Latest installation
66
63
- name : ' Install latest'
67
64
uses : ' ./'
68
65
with :
69
66
version : ' latest'
70
- skip_tool_cache : true
71
67
72
68
# By default, there is no configuration
73
69
- name : ' Check defaults'
81
77
uses : ' ./'
82
78
with :
83
79
install_components : ' cloud-run-proxy'
84
- skip_tool_cache : true
85
80
86
81
- name : ' Check components'
87
82
run : ' npm run integration'
93
88
uses : ' ./'
94
89
with :
95
90
project_id : ' ${{ vars.PROJECT_ID }}'
96
- skip_tool_cache : true
97
91
98
92
- name : ' Check project ID'
99
93
run : ' npm run integration'
@@ -109,8 +103,6 @@ jobs:
109
103
110
104
- name : ' Setup gcloud with WIF'
111
105
uses : ' ./'
112
- with :
113
- skip_tool_cache : true
114
106
115
107
- name : ' Check WIF authentication'
116
108
run : ' npm run integration'
@@ -126,8 +118,6 @@ jobs:
126
118
127
119
- name : ' Setup gcloud with SAKE'
128
120
uses : ' ./'
129
- with :
130
- skip_tool_cache : true
131
121
132
122
- name : ' Check SAKE authentication'
133
123
run : ' npm run integration'
Original file line number Diff line number Diff line change @@ -77,15 +77,12 @@ inputs:
77
77
default : false
78
78
required : false
79
79
80
- skip_tool_cache :
80
+ cache :
81
81
description : |-
82
- Skip transferring the downloaded artifacts into the runner's tool cache.
83
- On GitHub-managed runners, this makes no difference since they are
84
- ephemeral. On self-hosted runners, this controls whether the downloads are
85
- cached stored on the disk.
86
-
87
- For backwards-compatibility, this is is "false" by default. Setting the
88
- value to "true" can significantly speed up installation times.
82
+ Transfer the downloaded artifacts into the runner's tool cache. On
83
+ GitHub-managed runners, this have very little impact since runneres are
84
+ ephemeral. On self-hosted runners, this could improve future runs by
85
+ skipping future gcloud installations.
89
86
default : false
90
87
required : false
91
88
Original file line number Diff line number Diff line change 33
33
"@actions/core" : " ^1.11.1" ,
34
34
"@actions/tool-cache" : " ^2.0.2" ,
35
35
"@google-github-actions/actions-utils" : " ^0.8.10" ,
36
- "@google-github-actions/setup-cloud-sdk" : " ^1.2.3 "
36
+ "@google-github-actions/setup-cloud-sdk" : " ^2.0.0 "
37
37
},
38
38
"devDependencies" : {
39
39
"@eslint/eslintrc" : " ^3.3.1" ,
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ export async function run(): Promise<void> {
56
56
let version = presence ( core . getInput ( 'version' ) ) ;
57
57
const components = core . getInput ( 'install_components' ) ;
58
58
const projectId = core . getInput ( 'project_id' ) ;
59
- const skipToolCache = parseBoolean ( core . getInput ( 'skip_tool_cache ' ) ) ;
59
+ const cache = parseBoolean ( core . getInput ( 'cache ' ) ) ;
60
60
61
61
if ( skipInstall ) {
62
62
core . info ( `Skipping installation ("skip_install" was true)` ) ;
@@ -91,7 +91,7 @@ export async function run(): Promise<void> {
91
91
core . addPath ( path . join ( toolPath , 'bin' ) ) ;
92
92
} else {
93
93
core . debug ( `no version of gcloud matching "${ version } " is installed` ) ;
94
- await installGcloudSDK ( version , skipToolCache ) ;
94
+ await installGcloudSDK ( version , cache ) ;
95
95
}
96
96
}
97
97
You can’t perform that action at this time.
0 commit comments