Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
testableapple committed Nov 18, 2024
1 parent fc31be6 commit 36fec98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastlane/Allurefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ desc 'Upload test results to Allure TestOps'
lane :allure_upload do |options|
remove_duplicated_allure_results
options[:launch_id] ||= ENV.fetch('LAUNCH_ID', nil)
job_url = is_ci ? "--job-run-url '#{ENV.fetch('GITHUB_SERVER_URL')}/#{github_repo}/actions/runs/#{ENV.fetch('GITHUB_RUN_ID')}'" : ''
job_url = is_ci ? "--job-run-url '#{ENV.fetch('GITHUB_SERVER_URL')}/#{ENV.fetch('GITHUB_REPOSITORY')}/actions/runs/#{ENV.fetch('GITHUB_RUN_ID')}'" : ''
allure_args = "--log DEBUG -e #{allure_url} --project-id #{allure_project_id} --launch-id #{options[:launch_id]} #{job_url}"
sh("./allurectl launch reopen #{options[:launch_id]} -e #{allure_url} || true") # to prevent allure from uploading results to a closed launch
sh("env BRANCH_NAME='#{current_branch}' ./allurectl upload #{allure_args} #{allure_results_path} || true")
Expand Down

0 comments on commit 36fec98

Please sign in to comment.