Skip to content

Commit da538fb

Browse files
import credentials as soon as possible
1 parent 61c063a commit da538fb

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60677,6 +60677,7 @@ const main = async () => {
6067760677
try {
6067860678
if (!IS_POST) {
6067960679
core.saveState('isPost', true);
60680+
const credential = await (0, AppleCredential_1.ImportCredentials)();
6068060681
let xcodeVersionString = core.getInput('xcode-version');
6068160682
if (xcodeVersionString) {
6068260683
core.info(`Setting xcode version to ${xcodeVersionString}`);
@@ -60703,7 +60704,6 @@ const main = async () => {
6070360704
if (!xcodeVersionString) {
6070460705
throw new Error('Failed to parse Xcode version!');
6070560706
}
60706-
const credential = await (0, AppleCredential_1.ImportCredentials)();
6070760707
let projectRef = await (0, xcode_1.GetProjectDetails)(credential, semver.coerce(xcodeVersionString));
6070860708
projectRef = await (0, xcode_1.ArchiveXcodeProject)(projectRef);
6070960709
projectRef = await (0, xcode_1.ExportXcodeArchive)(projectRef);

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/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const main = async () => {
1919
try {
2020
if (!IS_POST) {
2121
core.saveState('isPost', true);
22+
const credential = await ImportCredentials();
2223
let xcodeVersionString = core.getInput('xcode-version');
2324
if (xcodeVersionString) {
2425
core.info(`Setting xcode version to ${xcodeVersionString}`);
@@ -44,7 +45,6 @@ const main = async () => {
4445
if (!xcodeVersionString) {
4546
throw new Error('Failed to parse Xcode version!');
4647
}
47-
const credential = await ImportCredentials();
4848
let projectRef = await GetProjectDetails(credential, semver.coerce(xcodeVersionString));
4949
projectRef = await ArchiveXcodeProject(projectRef);
5050
projectRef = await ExportXcodeArchive(projectRef);

0 commit comments

Comments
 (0)