diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6803907..d87fc49 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,10 +1,8 @@ name: Deploy to GitHub Pages on: workflow_dispatch: - schedule: - - cron: 1 0 * * * # This should trigger at 00:01 UTC every day. workflow_run: - workflows: [Tests] + workflows: [Tests, Schedule] types: [completed] branches: [main] permissions: @@ -20,7 +18,7 @@ env: jobs: build: runs-on: ubuntu-latest - if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.event == 'push' && github.event.workflow_run.conclusion == 'success' }} + if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }} steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 diff --git a/.github/workflows/schedule.yml b/.github/workflows/schedule.yml new file mode 100644 index 0000000..721ed82 --- /dev/null +++ b/.github/workflows/schedule.yml @@ -0,0 +1,10 @@ +name: Schedule +on: + schedule: + - cron: 1 0 * * * +jobs: + noop: + runs-on: ubuntu-latest + steps: + - name: Noop + run: echo "This is a dummy job to trigger the deployment workflow."