Skip to content

Commit

Permalink
moves schedule to its own workflow cant have workflow_run and scheudl…
Browse files Browse the repository at this point in the history
…e on the same workflow apparently
  • Loading branch information
ivoputzer committed Sep 17, 2024
1 parent 645f6be commit f4189ec
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/schedule.yml
Original file line number Diff line number Diff line change
@@ -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."

0 comments on commit f4189ec

Please sign in to comment.