Skip to content

[Fix] κΈ€μž 수 μ œν•œ #94

[Fix] κΈ€μž 수 μ œν•œ

[Fix] κΈ€μž 수 μ œν•œ #94

Workflow file for this run

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: `❌ λΉŒλ“œμ— μ‹€νŒ¨ν–ˆμŠ΅λ‹ˆλ‹€. λ‹€μ‹œ 고치고 μ˜€μ…” γ…‹γ…‹πŸš¨`
});