#65 - Firebase 경로를 수정한다. #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Opend PR Notification | |
on: | |
pull_request: | |
branches: | |
- develop | |
- main | |
types: | |
- opened | |
- reopened | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
token: ${{ secrets.SUBMODULE_ACCESS_TOKEN }} | |
- uses: actions/checkout@v3 | |
- name: set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 17 | |
distribution: temurin | |
cache: gradle | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Build with Gradle | |
run: ./gradlew app:build | |
- name: Send Success Message | |
if: ${{ success() }} | |
uses: Ilshidur/action-discord@0.3.2 | |
env: | |
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} | |
DISCORD_USERNAME: Server 사랑의 BOT | |
DISCORD_AVATAR: https://www.notion.so/image/https%3A%2F%2Fi.imgur.com%2FqIqJ0GA.png?table=block&id=232c40c1-598a-4163-bb8d-acf1151cd026&spaceId=4263d120-003b-49f8-8cb5-37585d6fb45d&width=2000&userId=c0125a99-ca81-4e9f-9c32-096f12a6698c&cache=v2 | |
DISCORD_EMBEDS: | | |
[ | |
{ | |
"author": { | |
"name": "${{ github.event.pull_request.user.login }}", | |
"url": "https://github.com/pknu-wap/WAPP/blob/main/image/icon.png?raw=true", | |
"icon_url": "${{ github.event.pull_request.user.avatar_url }}" | |
}, | |
"title": "PR 성공, 리뷰 자~ 두 과 자 ~! 🥰🥰 \n#${{ github.event.pull_request.number }} : ${{ github.event.pull_request.title }}", | |
"color": 10478271, | |
"description": "${{ github.event.pull_request.html_url }}", | |
"fields": [ | |
{ | |
"name": "Base Branch", | |
"value": "${{ github.base_ref }}", | |
"inline": true | |
}, | |
{ | |
"name": "Compare Branch", | |
"value": "${{ github.head_ref }}", | |
"inline": true | |
} | |
] | |
} | |
] | |
- name: Send Failure Message | |
if: ${{ failure() }} | |
uses: Ilshidur/action-discord@0.3.2 | |
env: | |
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} | |
DISCORD_USERNAME: Server 사랑의 BOT | |
DISCORD_AVATAR: https://www.notion.so/image/https%3A%2F%2Fi.imgur.com%2FqIqJ0GA.png?table=block&id=232c40c1-598a-4163-bb8d-acf1151cd026&spaceId=4263d120-003b-49f8-8cb5-37585d6fb45d&width=2000&userId=c0125a99-ca81-4e9f-9c32-096f12a6698c&cache=v2 | |
DISCORD_EMBEDS: | | |
[ | |
{ | |
"author": { | |
"name": "${{ github.event.pull_request.user.login }}", | |
"url": "https://github.com/pknu-wap/WAPP/blob/main/image/icon.png?raw=true", | |
"icon_url": "${{ github.event.pull_request.user.avatar_url }}" | |
}, | |
"title": "PR 실패. 미쿠짱, 10번 아이언 가져와 🏌️♀️🏌️♀️ \n#${{ github.event.pull_request.number }} : ${{ github.event.pull_request.title }}", | |
"color": 13458524, | |
"description": "${{ github.event.pull_request.html_url }}", | |
"fields": [ | |
{ | |
"name": "Base Branch", | |
"value": "${{ github.base_ref }}", | |
"inline": true | |
}, | |
{ | |
"name": "Compare Branch", | |
"value": "${{ github.head_ref }}", | |
"inline": true | |
} | |
] | |
} | |
] |