From 89bbe3a5269cc23ee141359e3566bfcc8c5f92f6 Mon Sep 17 00:00:00 2001 From: You-Sheng Yang Date: Tue, 16 May 2023 22:20:05 +0800 Subject: [PATCH] ci: add periodically builds --- .github/workflows/test.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6a4c54363387..f6a5fbaa5530 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,6 +13,8 @@ on: pull_request: branches: - main + schedule: + - cron: '17 3 * * 3' jobs: apply-patches: @@ -49,7 +51,7 @@ jobs: git log --graph --oneline "v${kver}..HEAD" - name: Check applied HEAD - if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} + if: ${{ (github.event_name == 'push' || github.event_name == 'schedule') && github.ref == 'refs/heads/main' }} run: | APPLIED_BRANCH="${{ github.ref }}" APPLIED_BRANCH=${APPLIED_BRANCH#*/} @@ -72,7 +74,7 @@ jobs: fi - name: Push applied HEAD - if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && env.NEED_PUSH == '1' }} + if: ${{ (github.event_name == 'push' || github.event_name == 'schedule') && github.ref == 'refs/heads/main' && env.NEED_PUSH == '1' }} uses: ad-m/github-push-action@master with: github_token: ${{ secrets.GITHUB_TOKEN }}