-
Notifications
You must be signed in to change notification settings - Fork 343
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update workflows for web-content (#638)
Update web-content repo url and add docs update event Web-content is the repo where to store docs data with different versions. Any modifies under `docs/` should dispatch event action to web-content for consistent update. Signed-off-by: czhen <[email protected]>
- Loading branch information
Zhen Chen
authored
Aug 17, 2021
1 parent
1f4bc4a
commit b1d075e
Showing
2 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: web-content - Dispatch event after docs files updated | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- 'master' | ||
- '1.*' | ||
paths: | ||
- 'docs/**' | ||
|
||
jobs: | ||
dispatch_event: | ||
name: Dispatch event | ||
runs-on: ubuntu-latest | ||
steps: | ||
- id: extract_branch | ||
name: Extract branch name | ||
shell: bash | ||
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" | ||
- id: dispatch_branch_name | ||
name: Dispatch branch name if update any docs | ||
run: | | ||
curl \ | ||
-X POST \ | ||
-H "Accept: application/vnd.github.v3+json" \ | ||
"https://api.github.com/repos/milvus-io/web-content/actions/workflows/updateApiByBranchEvent.yml/dispatches" \ | ||
-d '{"ref":"master", "inputs": { "branchName": "${{ steps.extract_branch.outputs.branch }}", "repoName": "${{ github.event.repository.name }}" } }' \ | ||
-u ".:${{secrets.DOC_TOKEN}}" |
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