Skip to content

Commit 14c481e

Browse files
Merge pull request #2 from depot/fix-inputs
2 parents a676f85 + 3142ac9 commit 14c481e

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/index.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ async function run() {
2222

2323
core.info(`depot ${resolvedVersion} is installed`)
2424

25-
await exec.exec(path.join(toolPath, 'depot'), ['configure-docker'])
26-
2725
const project = core.getInput('project')
2826
if (project) {
2927
core.exportVariable('DEPOT_PROJECT_ID', project)
@@ -34,6 +32,14 @@ async function run() {
3432
core.exportVariable('DEPOT_TOKEN', token)
3533
core.setSecret(token)
3634
}
35+
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+
})
3743
}
3844

3945
async function resolveVersion(version: string) {

0 commit comments

Comments
 (0)