Skip to content

Commit

Permalink
block concurrent execution of actions
Browse files Browse the repository at this point in the history
  • Loading branch information
wzdnzd committed Jun 8, 2024
1 parent c7c0ed2 commit 3be6ebf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/collect.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
- cron: "0 0 * * 1"
workflow_dispatch:

concurrency:
group: ${{ github.repository }}
cancel-in-progress: true

env:
# time zone
TZ: Asia/Shanghai
Expand Down Expand Up @@ -57,7 +61,7 @@ jobs:
fi
- name: Collect
run: python -u subscribe/collect.py --all --both --overwrite --pages 25 --skip
run: python -u subscribe/collect.py --all --both --overwrite --skip

- name: Timestamp
run: date
6 changes: 5 additions & 1 deletion .github/workflows/refresh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
- cron: "0 */2 * * *"
workflow_dispatch:

concurrency:
group: ${{ github.repository }}
cancel-in-progress: true

env:
# time zone
TZ: Asia/Shanghai
Expand Down Expand Up @@ -57,7 +61,7 @@ jobs:
fi
- name: Refresh
run: python -u subscribe/collect.py --all --both --refresh --overwrite --pages 25 --skip
run: python -u subscribe/collect.py --all --both --refresh --overwrite --skip

- name: Timestamp
run: date

0 comments on commit 3be6ebf

Please sign in to comment.