From 7852c105960ed4c4f0c6a62294ff4e35eed5a103 Mon Sep 17 00:00:00 2001 From: stakbucks Date: Sat, 14 Sep 2024 21:22:04 +0900 Subject: [PATCH] test: slack noti api --- .github/workflows/ci-preview.yaml | 13 +++++++++++++ turbo.json | 3 ++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-preview.yaml b/.github/workflows/ci-preview.yaml index 06f3fbd..c5188c3 100644 --- a/.github/workflows/ci-preview.yaml +++ b/.github/workflows/ci-preview.yaml @@ -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: | diff --git a/turbo.json b/turbo.json index 463f8b0..876b775 100644 --- a/turbo.json +++ b/turbo.json @@ -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"]