From 71082bf284baf03eecdf1ae72db6b87668e895ee Mon Sep 17 00:00:00 2001 From: Flook Date: Fri, 31 Jan 2025 23:01:04 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=97=E0=B8=94=E0=B8=AA=E0=B8=AD=E0=B8=9A?= =?UTF-8?q?=20CI/CD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 8 +++----- src/App.jsx | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index 3e9a38d..f5b8625 100644 --- a/.drone.yml +++ b/.drone.yml @@ -10,9 +10,7 @@ steps: from_secret: WEBHOOK_URL WEBHOOK_SECRET: from_secret: WEBHOOK_SECRET + BRANCH: + from_secret: BRANCH commands: - - 'curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $WEBHOOK_SECRET" "$WEBHOOK_URL"' - -trigger: - branch: - - master \ No newline at end of file + - 'curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $WEBHOOK_SECRET" -d "{\"branch\":\"master\"}" "$WEBHOOK_URL"' \ No newline at end of file diff --git a/src/App.jsx b/src/App.jsx index 8726f20..59b6098 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -2,7 +2,7 @@ function App() { return (
-

สวัสดี! CI/CD อัตโนมัติสำเร็จ

+

สวัสดี! ทดสอบ CI/CD อัตโนมัติสำเร็จ

) }