Skip to content

Commit ae6b216

Browse files
committed
Invoke xcversion update with apple credentials
1 parent f4bc241 commit ae6b216

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

dist/index.js

Lines changed: 9 additions & 1 deletion
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.

index.mjs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,15 @@ async function installXcode(xcodeVersion, appleID, appleIDPassword) {
2525

2626
core.startGroup('Install Xcode');
2727

28-
await exec.exec('xcversion', ['update'])
28+
await exec.exec('xcversion', ['update'], {
29+
cwd: process.env.TMPDIR,
30+
env: {
31+
...process.env,
32+
XCODE_INSTALL_USER: appleID,
33+
XCODE_INSTALL_PASSWORD: appleIDPassword,
34+
SPACESHIP_SKIP_2FA_UPGRADE: 1,
35+
}
36+
});
2937
await exec.exec('xcversion', ['install', xcodeVersion], {
3038
cwd: process.env.TMPDIR,
3139
env: {

0 commit comments

Comments
 (0)