Skip to content

Commit

Permalink
Merge pull request #60 from cscnk52/main
Browse files Browse the repository at this point in the history
chore(CI): update format to daily
  • Loading branch information
cscnk52 authored Oct 26, 2024
2 parents 29a14be + 963bf04 commit f0e2aaf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
16 changes: 3 additions & 13 deletions .github/workflows/autocorrect-check.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: AutoCorrect Markdown Check

on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
schedule:
- cron: "0 0 * * *"

jobs:
autocorrect:
Expand All @@ -27,15 +26,6 @@ jobs:
# 安装并运行 prettier
npm install -g prettier
prettier --write .
# 检查是否有文件更改
- name: Check for changes
run: git diff --exit-code || git status

# 如果有更改,则配置 Git 提交用户名和邮箱,并提交更改
- name: Commit changes
if: failure()
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add .
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: "Upstream Sync"

on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *" # 每天同步一次
workflow_dispatch:

jobs:
sync_latest_from_upstream:
Expand All @@ -23,4 +23,4 @@ jobs:
target_sync_repo: Ac-Wiki/AcWiKi
target_sync_branch: main
target_repo_token: ${{ secrets.GITHUB_TOKEN }}
test_mode: false
test_mode: false

0 comments on commit f0e2aaf

Please sign in to comment.