From a7c733b75c04e2b8e7f9905cb6a7305215122df3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BE=99=E9=BE=99=E9=BE=99?= Date: Tue, 25 Jun 2024 19:06:38 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=87=8F=E5=B0=91=E5=8F=91=E7=89=88?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E9=80=9A=E7=9F=A5=E6=89=80=E9=9C=80=E5=8F=82?= =?UTF-8?q?=E6=95=B0=EF=BC=8C=E5=A2=9E=E5=8A=A0=E5=8F=91=E7=89=88=E6=88=90?= =?UTF-8?q?=E5=8A=9F=E9=80=9A=E7=9F=A5=20(#1318)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../workflows/send-release-test-notification.yaml | 14 +------------- .github/workflows/tag-release.yaml | 10 ++++++++++ 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/.github/workflows/send-release-test-notification.yaml b/.github/workflows/send-release-test-notification.yaml index 8c68ecf0ed..29b325dd99 100644 --- a/.github/workflows/send-release-test-notification.yaml +++ b/.github/workflows/send-release-test-notification.yaml @@ -6,15 +6,6 @@ on: time: description: 'The deployment time (format: YYYY年MM月DD日)' required: true - version: - description: 'The version to deploy (format: X.Y.Z)' - required: true - level: - description: 'The release level (options: PATCH, MINOR, MAJOR)' - required: true - feature_freeze: - description: 'Feature freeze period (format: start time--end time)' - required: true jobs: deploy: @@ -33,12 +24,9 @@ jobs: - name: Send Notification Request run: | - curl -X POST http://47.96.27.236:8080/version \ + curl -X POST ${{ secrets.RELEASE_SERVICE_ADDRESS }}/version \ -H "Content-Type: application/json" \ -H "Authorization: Bearer ${{ secrets.RELEASE_API_KEY }}" \ -d '{ "time": "${{ github.event.inputs.time }}", - "version": "${{ github.event.inputs.version }}", - "level": "${{ github.event.inputs.level }}", - "feature_freeze": "${{ github.event.inputs.feature_freeze }}" }' diff --git a/.github/workflows/tag-release.yaml b/.github/workflows/tag-release.yaml index 8c0fdfd9a7..cea5683877 100644 --- a/.github/workflows/tag-release.yaml +++ b/.github/workflows/tag-release.yaml @@ -24,3 +24,13 @@ jobs: - name: Create tag if needed run: node scripts/tag.mjs + + send-version-success: + runs-on: ubuntu-latest + + steps: + - name: Send Notification Request + run: | + curl -X POST ${{ secrets.RELEASE_SERVICE_ADDRESS }}/version/success \ + -H "Content-Type: application/json" \ + -H "Authorization: Bearer ${{ secrets.RELEASE_API_KEY }}"