mirror of
https://github.com/Estom/notes.git
synced 2026-04-13 16:29:42 +08:00
test actions
This commit is contained in:
22
.github/workflows/call_remote_api.yml
vendored
22
.github/workflows/call_remote_api.yml
vendored
@@ -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/#/
|
||||
|
||||
Reference in New Issue
Block a user