feat: 撤回PUBLISH_SECRET_API #12
Workflow file for this run
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: Trigger API on Tag | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
trigger-api: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Trigger API | |
run: | | |
curl -X POST ${{secrets.PUBLISH_SECRET_API}} \ | |
-H "Content-Type: application/json" \ | |
-d '{"tag": "${{ github.ref }}"}' |