Skip to content

Commit

Permalink
ci: 첫 pr 요청 시에만 메시지를 보내도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ503 authored Nov 9, 2023
1 parent 7ae143b commit 6991f8f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/backend_pr_decorator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- uses: actions/checkout@v3

- name: set author slack id
if: github.event_name == 'pull_request' && github.event.action == 'synchronize'
if: github.event_name == 'pull_request' && github.event.action != 'synchronize'
id: author-slack
run: |
GIT_ID=${{ github.event.pull_request.user.login }}
Expand All @@ -39,7 +39,7 @@ jobs:
echo "AUTHOR_ID=${AUTHOR_ID}" >> $GITHUB_OUTPUT
- name: slack suggestion notification
if: contains(github.event.pull_request.labels.*.name, 'suggestion')
if: github.event_name == 'pull_request' && github.event.action != 'synchronize' && contains(github.event.pull_request.labels.*.name, 'suggestion')
id: slack-suggestion-notification
run: |
SLACK_MESSAGE='{"text":"제안 PR","blocks":[{"type":"section","text":{"type":"mrkdwn","text":">*제안 PR* \n>\n>*PR Author*\n>'
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
./gradlew jacocoTestCoverage
- name: slack notification
if: github.event_name == 'pull_request' && github.event.action == 'synchronize' && steps.slack-suggestion-notification.outcome == 'skipped'
if: github.event_name == 'pull_request' && github.event.action != 'synchronize' && steps.slack-suggestion-notification.outcome == 'skipped'
run: |
SLACK_MESSAGE='{"text":"PR 브랜치 분석","blocks":[{"type":"section","text":{"type":"mrkdwn","text":">*PR 브랜치 분석* \n>\n>*PR Author*\n>'
SLACK_MESSAGE+="<@"
Expand Down

0 comments on commit 6991f8f

Please sign in to comment.