Skip to content

Commit f4bc241

Browse files
committed
Update xcversion only when install
1 parent 54e641f commit f4bc241

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

dist/index.js

Lines changed: 1 addition & 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.

index.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ async function installXcode(xcodeVersion, appleID, appleIDPassword) {
88
throw new Error(`${process.platform} is not supported!`);
99
}
1010

11-
await exec.exec('xcversion', ['update'])
12-
1311
if (
1412
(await exec.exec('xcversion', ['select', xcodeVersion], {
1513
ignoreReturnCode: true
@@ -27,6 +25,7 @@ async function installXcode(xcodeVersion, appleID, appleIDPassword) {
2725

2826
core.startGroup('Install Xcode');
2927

28+
await exec.exec('xcversion', ['update'])
3029
await exec.exec('xcversion', ['install', xcodeVersion], {
3130
cwd: process.env.TMPDIR,
3231
env: {

0 commit comments

Comments
 (0)