Skip to content

Commit

Permalink
Create manual-trigger-only-chinese-build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
peterleimbach authored Oct 22, 2024
1 parent 08af27a commit db3995c
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/manual-trigger-only-chinese-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: manual Trigger Only Traditional und Simplified Chinese RTD Builds

on:
workflow_dispatch:

jobs:
curl:
runs-on: ubuntu-latest
steps:
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
- name: curl
uses: wei/curl@v1
with:
args: -X POST -d "branches=${{ steps.extract_branch.outputs.branch }}" -d "token=${{ secrets.RTD_WEBHOOK_KEY_ZH_CN }}" https://readthedocs.org/api/v2/webhook/androidaps/281205/
- name: curl
uses: wei/curl@v1
with:
args: -X POST -d "branches=${{ steps.extract_branch.outputs.branch }}" -d "token=${{ secrets.RTD_WEBHOOK_KEY_ZH_TW }}" https://readthedocs.org/api/v2/webhook/androidaps/281206/

0 comments on commit db3995c

Please sign in to comment.