We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a676f85 + 3142ac9 commit 14c481eCopy full SHA for 14c481e
1 file changed
src/index.ts
@@ -22,8 +22,6 @@ async function run() {
22
23
core.info(`depot ${resolvedVersion} is installed`)
24
25
- await exec.exec(path.join(toolPath, 'depot'), ['configure-docker'])
26
-
27
const project = core.getInput('project')
28
if (project) {
29
core.exportVariable('DEPOT_PROJECT_ID', project)
@@ -34,6 +32,14 @@ async function run() {
34
32
core.exportVariable('DEPOT_TOKEN', token)
35
33
core.setSecret(token)
36
}
+
+ await exec.exec(path.join(toolPath, 'depot'), ['configure-docker'], {
37
+ env: {
38
+ ...process.env,
39
+ DEPOT_PROJECT_ID: process.env.DEPOT_PROJECT_ID ?? project,
40
+ DEPOT_TOKEN: process.env.DEPOT_TOKEN ?? token,
41
+ },
42
+ })
43
44
45
async function resolveVersion(version: string) {
0 commit comments