Skip to content

Commit 20f82bd

Browse files
authored
Merge pull request #1723 from Kobzol/ci-cron
Run sync every four hours and allow manual execution
2 parents ee32cb3 + 0a9d108 commit 20f82bd

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/main.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,20 @@ name: CI
33
on:
44
pull_request:
55
merge_group:
6+
workflow_dispatch:
7+
schedule:
8+
# Run every four hours to make sure that all changes are up-to-date
9+
- cron: 0 */4 * * *
10+
11+
concurrency:
12+
# We want to make sure that parallel executions (merge queue, cron, manual) of this workflow
13+
# do not perform the `deploy` job in parallel.
14+
# At the same time, we want to avoid this workflow running in parallel for multiple PRs
15+
# (where it only runs tests, without deploy).
16+
# If we're in a PR, `head_ref` is set, so we allow parallel runs for different PR HEAD refs.
17+
# If we're elsewhere, we use a constant string to use the same concurrency group.
18+
group: ${{ github.workflow }}-${{ github.head_ref || 'deploy' }}
19+
cancel-in-progress: false
620

721
jobs:
822
test:
@@ -59,7 +73,6 @@ jobs:
5973
needs: [ test ]
6074
runs-on: ubuntu-latest
6175
environment: deploy
62-
concurrency: deploy
6376
permissions:
6477
id-token: write
6578
pages: write

0 commit comments

Comments
 (0)