Skip to content

Commit

Permalink
[chore] #1 pr_builder.yml 파일 수정 (google-services.json, Slack Notify 추가)
Browse files Browse the repository at this point in the history
  • Loading branch information
jihyunniiii committed Dec 29, 2023
1 parent 29cd77d commit cfc6f5e
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .github/workflows/pr_builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ jobs:
- name: Touch local properties
run: touch local.properties

- name: Decode google-services.json
env:
FIREBASE_SECRET: ${{ secrets.FIREBASE_SECRET }}
run: echo $FIREBASE_SECRET > app/google-services.json

- name: Access BASE_URL
env:
HFM_BASE_URL: ${{ secrets.BASE_URL }}
Expand All @@ -51,4 +56,24 @@ jobs:
run: ./gradlew ktlintCheck -PcompileSdkVersion=34

- name: Build with Gradle
run: ./gradlew build -PcompileSdkVersion=34
run: ./gradlew build -PcompileSdkVersion=34

- name: Slack Notify - Success
if: ${{ success() }}
uses: rtCamp/action-slack-notify@v2
env:
SLACK_COLOR: '#B7FF1D'
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_TITLE: '✅ PR Success ✅'
SLACK_USERNAME: PINGLE-ANDROID 🌀
SLACK_MESSAGE: 'PR이 완료되었습니다! ➿'

- name: Slack Notify - Failure
if: ${{ failure() }}
uses: rtCamp/action-slack-notify@v2
env:
SLACK_COLOR: '#B7FF1D'
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_TITLE: '❌ PR Failed ❌'
SLACK_USERNAME: PINGLE-ANDROID 🌀
SLACK_MESSAGE: '에러를 확인해 주세요 😵‍💫'

0 comments on commit cfc6f5e

Please sign in to comment.