File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,11 @@ name: log4u-build
22on :
33# push:
44# branches:
5- # - dev # dev 브랜치 push
5+ # - develop # dev 브랜치 push
66 pull_request :
77 branches :
88 - main # main pr
9+ - develop # develop pr
910 types : [ opened, synchronize, reopened ]
1011jobs :
1112 build :
4142 DB_PASSWORD : ${{ secrets.DB_PASSWORD }} # Database password
4243 run : |
4344 chmod +x ./gradlew
44- ./gradlew build jacocoTestReport sonar --info
45+ ./gradlew build jacocoTestReport sonar --info -Dsonar.branch.name=${{ github.ref_name }}
Original file line number Diff line number Diff line change 2222
2323 - name : Create new archive branch
2424 run : |
25- git checkout dev
26- git pull origin dev
25+ git checkout develop
26+ git pull origin develop
2727 git checkout -b ${{ env.BRANCH_NAME }}
2828 git push origin ${{ env.BRANCH_NAME }}
Original file line number Diff line number Diff line change @@ -74,5 +74,6 @@ sonar {
7474 property(" sonar.host.url" , " https://sonarcloud.io" )
7575 property(" sonar.coverage.jacoco.xmlReportPaths" , " build/reports/jacoco/test/jacocoTestReport.xml" )
7676 property(" sonar.java.checkstyle.reportPaths" , " build/reports/checkstyle/main.xml" )
77+ property(" sonar.branch.name" , System .getenv(" BRANCH_NAME" ) ? : " main" )
7778 }
7879}
You can’t perform that action at this time.
0 commit comments