Skip to content

Commit fbbf50b

Browse files
authored
Merge pull request #9 from prgrms-web-devcourse-final-project/feature/github-action
Chore: 브랜치명 변경 dev -> develop
2 parents 3b92f9f + 9133254 commit fbbf50b

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ name: log4u-build
22
on:
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 ]
1011
jobs:
1112
build:
@@ -41,4 +42,4 @@ jobs:
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 }}

.github/workflows/daily-archive.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
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 }}

build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)