Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MemoryCollection authored Oct 29, 2024
1 parent cccdcfd commit 18c2e07
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ on:
push:
branches:
- main
pull_request:
branches:
- main
paths:
- main.py # 当 main.py 变动时触发
schedule:
- cron: '0 */6 * * *' # 每隔 6 小时运行一次
workflow_dispatch: # 允许手动触发工作流

jobs:
build:
Expand All @@ -33,4 +35,4 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: txt-files
path: '*.txt' # 使用单引号,确保通配符有效
path: '*.txt'

0 comments on commit 18c2e07

Please sign in to comment.