Merge pull request #309 from SOPT-all/feat/#308/og-meta #103
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: build Test | |
on: | |
pull_request: | |
branches: | |
- develop | |
push: | |
branches: | |
- 'feat/**' | |
- 'api/**' | |
- 'fix/**' | |
- 'design/**' | |
- 'style/**' | |
- 'chore/**' | |
- 'setting/**' | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y ruby | |
gem install mustache --user-install | |
- name: Run build/test | |
run: | | |
echo "๐จ ๋น๋ ์คํ ์ค..." | |
sh ./build.sh | |
- name: Add bot comment to PR | |
if: success() && github.event_name == 'pull_request' | |
uses: actions/github-script@v6 | |
with: | |
script: | | |
const prNumber = context.payload.pull_request.number; | |
await github.rest.issues.createComment({ | |
issue_number: prNumber, | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
body: `โ ๋น๋ ์ฑ๊ณต์ ์ผ๋ก ์๋ฃ๋์์ง๋กฑ๋กฑ ๐ ๏ธ` | |
}); | |
- name: Add failure comment to PR | |
if: failure() && github.event_name == 'pull_request' | |
uses: actions/github-script@v6 | |
with: | |
script: | | |
const prNumber = context.payload.pull_request.number; | |
await github.rest.issues.createComment({ | |
issue_number: prNumber, | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
body: `โ ๋น๋์ ์คํจํ์ต๋๋ค. ๋ค์ ๊ณ ์น๊ณ ์ค์ ใ ใ ๐จ` | |
}); |