test actions

This commit is contained in:
yinkanglong
2024-01-21 19:58:15 +08:00
parent adc19182ba
commit 8f271448da

View File

@@ -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/#/