优化workflow

This commit is contained in:
zhiyi
2024-10-10 20:14:07 +08:00
parent f827e221e7
commit 07a9e9773b

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" commit_message=$([[ "${{ github.event_name }}" == "schedule" ]] && echo "定期更新数据并生成 gfw.pac" || echo "自动生成 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