Skip to content

Commit

Permalink
chore: 减少发版测试通知所需参数,增加发版成功通知 (#1318)
Browse files Browse the repository at this point in the history
  • Loading branch information
Miracle575 authored Jun 25, 2024
1 parent 4dfd5df commit a7c733b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
14 changes: 1 addition & 13 deletions .github/workflows/send-release-test-notification.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}"
}'
10 changes: 10 additions & 0 deletions .github/workflows/tag-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"

0 comments on commit a7c733b

Please sign in to comment.