Send release test notification #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Send release test notification | |
on: | |
workflow_dispatch: | |
inputs: | |
time: | |
description: 'The deployment time (format: YYYY年MM月DD日)' | |
required: true | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Print Notification Details | |
run: | | |
echo "Deployment Time: ${{ github.event.inputs.time }}" | |
echo "Version: ${{ github.event.inputs.version }}" | |
echo "Release Level: ${{ github.event.inputs.level }}" | |
echo "Feature Freeze Period: ${{ github.event.inputs.feature_freeze }}" | |
- name: Send Notification Request | |
run: | | |
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 }}" | |
}' |