Skip to content

Commit d0f544d

Browse files
committed
Move cwd setting
1 parent 2c66bf3 commit d0f544d

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

dist/index.js

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/github/repos.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,11 @@ export async function configure(
121121
],
122122
options
123123
)
124+
125+
// Update the working directory to the checked out repository.
126+
options.cwd = `${workspace}/${repo}`
127+
128+
// Update the remote URL to use the token.
124129
await exec.exec(
125130
'git',
126131
[
@@ -132,9 +137,6 @@ export async function configure(
132137
options
133138
)
134139

135-
// Update the working directory to the checked out repository.
136-
options.cwd = `${workspace}/${repo}`
137-
138140
// Configure the Git user.
139141
core.info('Configuring Git')
140142
await exec.exec('git', ['config', 'user.name', `"${Bot.USER}"`], options)

0 commit comments

Comments
 (0)