From e35c915ee36b259ff4d417f6a91082ddbe03557c Mon Sep 17 00:00:00 2001 From: Bai Date: Thu, 5 Dec 2024 19:39:49 +0800 Subject: [PATCH] perf: add workflows auto release docs --- .github/workflows/docs-release.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/docs-release.yml diff --git a/.github/workflows/docs-release.yml b/.github/workflows/docs-release.yml new file mode 100644 index 000000000..bba9a96a8 --- /dev/null +++ b/.github/workflows/docs-release.yml @@ -0,0 +1,24 @@ +name: Auto update docs changelog + +on: + release: + types: [published] + +jobs: + update_docs_changelog: + runs-on: ubuntu-latest + if: startsWith(github.event.release.tag_name, 'v4.') + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Update docs changelog + env: + TAG_NAME: ${{ github.event.release.tag_name }} + DOCS_TOKEN: ${{ secrets.DOCS_TOKEN }} + run: | + git config --global user.name 'BaiJiangJie' + git config --global user.email 'jiangjie.bai@fit2cloud.com' + + git clone https://$DOCS_TOKEN@github.com/jumpservice/documentation.git + cd documentation/utils + bash update_changelog.sh \ No newline at end of file