Skip to content

Commit 35becf9

Browse files
authored
ci: Update mirror.yaml
1 parent 761ca3c commit 35becf9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/mirror.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@ on:
99
branches:
1010
- "develop"
1111
- "master"
12+
schedule:
13+
- cron: "0 0 * * *"
1214
workflow_dispatch:
1315

1416
jobs:
1517
gitlab:
1618
name: Mirror to GitLab
17-
if: github.actor == 'sorairolake' && github.repository_owner == 'sorairolake'
19+
if: (github.actor == 'sorairolake' || github.event_name == 'schedule') && github.repository_owner == 'sorairolake'
1820
runs-on: ubuntu-22.04
1921
steps:
2022
- name: Checkout code
@@ -31,7 +33,7 @@ jobs:
3133

3234
codeberg:
3335
name: Mirror to Codeberg
34-
if: github.actor == 'sorairolake' && github.repository_owner == 'sorairolake'
36+
if: (github.actor == 'sorairolake' || github.event_name == 'schedule') && github.repository_owner == 'sorairolake'
3537
runs-on: ubuntu-22.04
3638
steps:
3739
- name: Checkout code

0 commit comments

Comments
 (0)