Skip to content

Commit

Permalink
test: slack noti api
Browse files Browse the repository at this point in the history
  • Loading branch information
stakbucks committed Sep 14, 2024
1 parent cc373b5 commit 7852c10
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .github/workflows/ci-preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,19 @@ jobs:
vercel_project_id: ${{ secrets.VERCEL_PROJECT_ID_BOTTLE }}
- name: Get URL
run: echo "https://${{ steps.vercel_preview_url.outputs.preview_url }}"

- name: Send Slack Notification
env:
DATA: |
{
"channel": "C07N47FH04Q",
"text": "<@U07L87GGHJS> 테스트중~ 👉 https://${{ steps.vercel_preview_url.outputs.preview_url }}",
}
run: |
curl -X POST -H "Content-Type: application/json" \
-d "$DATA" \
${{ secrets.SLACK_WEBHOOK_URL }}
- name: Send Discord Notification
env:
DATA: |
Expand Down
3 changes: 2 additions & 1 deletion turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"build": {
"dependsOn": ["^build"],
"inputs": ["$TURBO_DEFAULT$", ".env*"],
"outputs": [".next/**", "!.next/cache/**", "dist/**"]
"outputs": [".next/**", "!.next/cache/**", "dist/**"],
"cache": false
},
"test:e2e": {
"dependsOn": ["^build"]
Expand Down

0 comments on commit 7852c10

Please sign in to comment.