Skip to content

Commit

Permalink
Merge pull request #2 from depot/fix-inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobwgillespie authored Sep 28, 2023
2 parents a676f85 + 3142ac9 commit 14c481e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ async function run() {

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

await exec.exec(path.join(toolPath, 'depot'), ['configure-docker'])

const project = core.getInput('project')
if (project) {
core.exportVariable('DEPOT_PROJECT_ID', project)
Expand All @@ -34,6 +32,14 @@ async function run() {
core.exportVariable('DEPOT_TOKEN', token)
core.setSecret(token)
}

await exec.exec(path.join(toolPath, 'depot'), ['configure-docker'], {
env: {
...process.env,
DEPOT_PROJECT_ID: process.env.DEPOT_PROJECT_ID ?? project,
DEPOT_TOKEN: process.env.DEPOT_TOKEN ?? token,
},
})
}

async function resolveVersion(version: string) {
Expand Down

0 comments on commit 14c481e

Please sign in to comment.