File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 83
83
xcode : " 13.3.1"
84
84
- name : Run Tests (Debug)
85
85
run : bundle exec fastlane test_ui device:"iPhone 12 (15.4)"
86
+ - name : Get branch name
87
+ id : get_branch_name
88
+ run : echo "##[set-output name=branch;]${GITHUB_REF#refs/heads/}"
86
89
- name : Run Sonar analysis
87
90
run : bundle exec fastlane sonar_upload
88
91
env :
92
+ BRANCH_NAME : ${{ steps.get_branch_name.outputs.branch }}
89
93
SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_URL }}
90
94
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
91
95
SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ lane :sonar_upload do
25
25
project_version : version_number
26
26
)
27
27
else
28
- branch = git_branch
28
+ branch = ENV [ 'BRANCH_NAME' ] || git_branch
29
29
30
30
sonar (
31
31
sonar_login : ENV [ 'SONAR_TOKEN' ] ,
You can’t perform that action at this time.
0 commit comments