Skip to content

Commit

Permalink
[TASK] Reintroduce scheduled nightly
Browse files Browse the repository at this point in the history
This change reintroduces scheduled
ci exectution. In contrast to the
prior setup the used way allows us
to have schedules not only for the
default branch.

As a side-effect we get the ability
to manually dispatch nightly on a
branch any time.
  • Loading branch information
sbuerk committed Mar 5, 2024
1 parent 7b2635e commit 307bfe4
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/nightly-7.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: "nightly-7"
on:
schedule:
- cron: '42 5 * * *'
workflow_dispatch:

jobs:
7:
name: "dispatch-nightly-7"
runs-on: ubuntu-22.04
permissions: write-all
steps:
- name: Checkout '7'
uses: actions/checkout@v4
with:
ref: '7'

- name: Execute 'ci.yml' on '7'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh workflow run ci.yml --ref 7
23 changes: 23 additions & 0 deletions .github/workflows/nightly-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: "nightly-main"
on:
schedule:
- cron: '42 5 * * *'
workflow_dispatch:

jobs:
main:
name: "dispatch-nightly-main"
runs-on: ubuntu-22.04
permissions: write-all
steps:
- name: Checkout 'main'
uses: actions/checkout@v4
with:
ref: 'main'

- name: Execute 'ci.yml' on 'main'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh workflow run ci.yml --ref main

0 comments on commit 307bfe4

Please sign in to comment.