From 425f4ab48bbb2e79f3eacad7982123a2d512aef7 Mon Sep 17 00:00:00 2001 From: lcxadml <78339638+lcxadml@users.noreply.github.com> Date: Sat, 20 Jan 2024 10:09:35 +0800 Subject: [PATCH] Feat/sync docs (#1088) Co-authored-by: lcx01800250 --- .github/workflows/sync-docs.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/sync-docs.yaml diff --git a/.github/workflows/sync-docs.yaml b/.github/workflows/sync-docs.yaml new file mode 100644 index 000000000..03baeae86 --- /dev/null +++ b/.github/workflows/sync-docs.yaml @@ -0,0 +1,20 @@ +name: Trigger Auto Publish + +on: + push: + tags: + - "*" + +jobs: + trigger-api: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Trigger Publish API + run: | + curl -X POST ${{secrets.PUBLISH_SECRET_API}} \ + -H "Content-Type: application/json" \ + -d '{"tag": "${{ github.ref }}"}'