From 37f9a6d561808ff720daebf9d34e684566e01db6 Mon Sep 17 00:00:00 2001 From: Shun Sakai Date: Wed, 9 Oct 2024 19:49:42 +0900 Subject: [PATCH] ci: Update `mirror.yaml` --- .github/workflows/mirror.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/mirror.yaml b/.github/workflows/mirror.yaml index 4285350..b294f43 100644 --- a/.github/workflows/mirror.yaml +++ b/.github/workflows/mirror.yaml @@ -9,12 +9,14 @@ on: branches: - "develop" - "master" + schedule: + - cron: "0 0 * * *" workflow_dispatch: jobs: gitlab: name: Mirror to GitLab - if: github.actor == 'sorairolake' && github.repository_owner == 'sorairolake' + if: (github.actor == 'sorairolake' || github.event_name == 'schedule') && github.repository_owner == 'sorairolake' runs-on: ubuntu-22.04 steps: - name: Checkout code @@ -31,7 +33,7 @@ jobs: codeberg: name: Mirror to Codeberg - if: github.actor == 'sorairolake' && github.repository_owner == 'sorairolake' + if: (github.actor == 'sorairolake' || github.event_name == 'schedule') && github.repository_owner == 'sorairolake' runs-on: ubuntu-22.04 steps: - name: Checkout code