Skip to content

Commit

Permalink
Update sync-upstream.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
aigem authored Dec 27, 2024
1 parent bb4a2e7 commit eb622d7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/sync-upstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,18 @@ on:
- cron: '0 */4 * * *' # 每4小时运行一次
workflow_dispatch: # 允许手动触发

# 添加权限配置
permissions:
contents: write
workflows: write # 添加 workflows 写入权限

jobs:
sync:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down

0 comments on commit eb622d7

Please sign in to comment.