Skip to content

Commit

Permalink
test actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Estom committed Jan 21, 2024
1 parent adc1918 commit 8f27144
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/call_remote_api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 "[email protected]"
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/#/
Expand Down

0 comments on commit 8f27144

Please sign in to comment.