优化workflow

This commit is contained in:
zhiyi
2024-10-10 17:35:05 +08:00
parent 357bbd09bd
commit f827e221e7

View File

@@ -28,7 +28,7 @@ jobs:
- name: Commit and push changes - name: Commit and push changes
run: | run: |
last_commit_message=$(git log -1 --pretty=%B) last_commit_message=$(git log -1 --pretty=%B)
$GITHUB_EVENT_NAME == 'schedule' && commit_message="定期更新数据并生成 gfw.pac" || commit_message="自动生成 gfw.pac: $last_commit_message" ${{ github.event_name }} == 'schedule' && commit_message="定期更新数据并生成 gfw.pac" || commit_message="自动生成 gfw.pac: $last_commit_message"
git config --local user.email "action@github.com" git config --local user.email "action@github.com"
git config --local user.name "GitHub Action" git config --local user.name "GitHub Action"
git add -A git add -A