From 8f271448daf4e5326ba4c30d2d5c1b9255979c63 Mon Sep 17 00:00:00 2001 From: yinkanglong Date: Sun, 21 Jan 2024 19:58:15 +0800 Subject: [PATCH] test actions --- .github/workflows/call_remote_api.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/call_remote_api.yml b/.github/workflows/call_remote_api.yml index 02018023..5b32d5f0 100644 --- a/.github/workflows/call_remote_api.yml +++ b/.github/workflows/call_remote_api.yml @@ -15,6 +15,28 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 + + # - name: Install Python dependencies (if any) + # run: | + # pip install --upgrade pip + # pip install -r requirements.txt # 如果有依赖,请替换为实际的依赖安装命令 + + - name: Generate files with Python script + run: python ./notes/blog/docsify/build_sidebar.py # 替换为你的Python脚本路径 + + - name: Commit generated files + run: | + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" + git add . + git commit -m "Automatically update generated files" || echo "No changes to commit" + + - name: Push changes + uses: ad-m/github-push-action@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + branch: main + - name: Call Remote API run: | curl -X GET http://8.141.4.34/#/