Skip to content

Commit

Permalink
chore(ci): add direct branch cloning for fastlane match (#4597)
Browse files Browse the repository at this point in the history
  • Loading branch information
philprime authored Dec 10, 2024
1 parent 12e65d0 commit 08a18aa
Showing 1 changed file with 37 additions and 6 deletions.
43 changes: 37 additions & 6 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,12 @@ platform :ios do
sync_code_signing(
type: "appstore",
readonly: true,
app_identifier: ["io.sentry.sample.iOS-Swift", "io.sentry.sample.iOS-Swift.Clip"]
app_identifier: ["io.sentry.sample.iOS-Swift", "io.sentry.sample.iOS-Swift.Clip"],

# Directly cloning the branch instead of using a shallow clone fixes the rare error:
# fatal: a branch named 'master' already exists in GitHub Action workflows.
git_branch: "master",
clone_branch_directly: true
)

build_app(
Expand All @@ -107,7 +112,12 @@ platform :ios do
sync_code_signing(
type: "development",
readonly: true,
app_identifier: ["io.sentry.sample.iOS-Swift", "io.sentry.sample.iOS-Swift.Clip"]
app_identifier: ["io.sentry.sample.iOS-Swift", "io.sentry.sample.iOS-Swift.Clip"],

# Directly cloning the branch instead of using a shallow clone fixes the rare error:
# fatal: a branch named 'master' already exists in GitHub Action workflows.
git_branch: "master",
clone_branch_directly: true
)

build_app(
Expand All @@ -129,7 +139,12 @@ platform :ios do
sync_code_signing(
type: "development",
readonly: true,
app_identifier: ["io.sentry.sample.iOS-Swift", "io.sentry.sample.iOS-Swift.Clip", "io.sentry.iOS-Swift-UITests.xctrunner"]
app_identifier: ["io.sentry.sample.iOS-Swift", "io.sentry.sample.iOS-Swift.Clip", "io.sentry.iOS-Swift-UITests.xctrunner"],

# Directly cloning the branch instead of using a shallow clone fixes the rare error:
# fatal: a branch named 'master' already exists in GitHub Action workflows.
git_branch: "master",
clone_branch_directly: true
)

# don't use gym here because it always appends a "build" command which fails, since this is a test target not configured for running
Expand All @@ -147,7 +162,13 @@ platform :ios do
sync_code_signing(
type: "development",
readonly: true,
app_identifier: ["io.sentry.sample.iOS-Swift", "io.sentry.sample.iOS-Swift.Clip", "io.sentry.iOS-Benchmarking.xctrunner"]
app_identifier: ["io.sentry.sample.iOS-Swift", "io.sentry.sample.iOS-Swift.Clip", "io.sentry.iOS-Benchmarking.xctrunner"],


# Directly cloning the branch instead of using a shallow clone fixes the rare error:
# fatal: a branch named 'master' already exists in GitHub Action workflows.
git_branch: "master",
clone_branch_directly: true
)

build_app(
Expand Down Expand Up @@ -258,7 +279,12 @@ platform :ios do
sync_code_signing(
type: "development",
readonly: true,
app_identifier: ["io.sentry.cocoa.perf-test-app-plain"]
app_identifier: ["io.sentry.cocoa.perf-test-app-plain"],

# Directly cloning the branch instead of using a shallow clone fixes the rare error:
# fatal: a branch named 'master' already exists in GitHub Action workflows.
git_branch: "master",
clone_branch_directly: true
)

build_app(
Expand All @@ -283,7 +309,12 @@ platform :ios do
sync_code_signing(
type: "development",
readonly: true,
app_identifier: ["io.sentry.cocoa.perf-test-app-sentry"]
app_identifier: ["io.sentry.cocoa.perf-test-app-sentry"],

# Directly cloning the branch instead of using a shallow clone fixes the rare error:
# fatal: a branch named 'master' already exists in GitHub Action workflows.
git_branch: "master",
clone_branch_directly: true
)

build_app(
Expand Down

0 comments on commit 08a18aa

Please sign in to comment.