Skip to content

dispatch new tag event #70

dispatch new tag event

dispatch new tag event #70

Workflow file for this run

name: dispatch new tag event
on:
release:
types: [released]
jobs:
dispatch:
name: Dispatch event
runs-on: ubuntu-latest
steps:
- name: Tag name
id: tag_name
run: |
echo ::set-output name=SOURCE_TAG::${GITHUB_REF#refs/tags/}
- name: Dispatch tag name
id: dispatch_tag_name
run: |
curl \
-X POST \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/milvus-io/web-content/actions/workflows/updateApiReference.yml/dispatches \
-d '{"ref":"master", "inputs": { "tagName": "${{ steps.tag_name.outputs.SOURCE_TAG }}", "repoName": "${{ github.event.repository.name }}" } }' \
-u ".:${{secrets.DOC_TOKEN}}"