-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/#/ | ||
|