-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] Reintroduce scheduled nightly
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
Showing
2 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |