Skip to content

Merge pull request #309 from SOPT-all/feat/#308/og-meta #103

Merge pull request #309 from SOPT-all/feat/#308/og-meta

Merge pull request #309 from SOPT-all/feat/#308/og-meta #103

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: `โŒ ๋นŒ๋“œ์— ์‹คํŒจํ–ˆ์Šต๋‹ˆ๋‹ค. ๋‹ค์‹œ ๊ณ ์น˜๊ณ  ์˜ค์…” ใ…‹ใ…‹๐Ÿšจ`
});