Skip to content

Commit 1cea8c6

Browse files
authored
e2e: don't upload artifacts to s3 in e2e pipeline (#9546)
1 parent c3f83f9 commit 1cea8c6

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

.github/workflows/e2e-detox-pr.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,8 @@ jobs:
6868
- name: Build iOS Simulator
6969
env:
7070
TAG: "${{ github.event.pull_request.head.sha }}"
71-
AWS_ACCESS_KEY_ID: "${{ secrets.MM_MOBILE_BETA_AWS_ACCESS_KEY_ID }}"
72-
AWS_SECRET_ACCESS_KEY: "${{ secrets.MM_MOBILE_BETA_AWS_SECRET_ACCESS_KEY }}"
7371
GITHUB_TOKEN: "${{ secrets.MM_MOBILE_GITHUB_TOKEN }}"
74-
run: bundle exec fastlane ios simulator --env ios.simulator
72+
run: bundle exec fastlane ios simulator --env ios.simulator skip_upload_to_s3_bucket:true
7573
working-directory: ./fastlane
7674

7775
- name: Upload iOS Simulator Build

fastlane/Fastfile

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,8 @@ platform :ios do
438438
)
439439
end
440440

441-
lane :simulator do
441+
lane :simulator do |options|
442+
skip_upload_to_s3_bucket = options[:skip_upload_to_s3_bucket] == true
442443
UI.success('Building iOS app for simulator')
443444

444445
# Detect the host architecture
@@ -461,10 +462,12 @@ platform :ios do
461462
output_file: output_file,
462463
)
463464

464-
upload_file_to_s3({
465-
:os_type => "ios",
466-
:file => output_file
467-
})
465+
unless skip_upload_to_s3_bucket
466+
upload_file_to_s3({
467+
:os_type => "ios",
468+
:file => output_file
469+
})
470+
end
468471
end
469472

470473
desc 'Upload artifacts to S3'

0 commit comments

Comments
 (0)