Skip to content

Commit

Permalink
ci: build ci 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hyeseon-han committed Jan 23, 2024
1 parent 3e767c4 commit f33218a
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions .github/workflows/workflow-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,29 +28,3 @@ jobs:

- name: Build
run: yarn build

# 빌드 실패한 경우에만 실행되는 step
- name: if build fail
if: ${{ failure() }}
uses: actions/github-script@v6
with:
github-token: ${{ github.token }}
script: |
const pull_number = ${{ github.event.pull_request.number }}
const updated_title = `[BUILD FAIL] ${{ github.event.pull_request.title }}`
await github.rest.pulls.createReview({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: pull_number,
body: '빌드에 실패했습니다.',
event: 'REQUEST_CHANGES'
})
await github.rest.pulls.update({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: pull_number,
title: updated_title,
state: 'closed'
})

0 comments on commit f33218a

Please sign in to comment.