Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.github/workflows/schedule-builds: Run scheduled jobs via workflow_dispatch #166

Merged
merged 2 commits into from
Dec 3, 2024

Conversation

hnez
Copy link
Contributor

@hnez hnez commented Nov 29, 2024

We currently only test the master branch on a regular schedule and not the different release branches (like e.g. scarthgap or styhead).

Also testing these other branches is complicated by the following detail in the GitHub action documentation:

Scheduled workflows will only run on the default branch

This means we need some sort of workaround to run scheduled jobs on different branches. This commit adds a scheduled job on the master branch to trigger jobs on other branches via the workflow_dispatch event.

Build the master branch as well as all current release branches.

This change is based on similar PRs in meta-rauc and meta-labgrid:

TODO before merging:

…spatch

We currently only test the master branch on a regular schedule and not the
different release branches (like e.g. scarthgap or styhead).

Also testing these other branches is complicated by the following detail
in the GitHub action documentation[1]:

> Scheduled workflows will only run on the default branch

This means we need some sort of workaround to run scheduled jobs on
different branches. This commit adds a scheduled job on the master branch
to trigger jobs on other branches via the `workflow_dispatch` event.

Build the master branch as well as all current release branches.

[1]: https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#schedule

Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de>
@hnez hnez force-pushed the ci-master branch 3 times, most recently from ba12912 to c0527c8 Compare November 29, 2024 13:18
The previous badge pointed to the `meta-ptx.yml` workflow file,
which is no longer used in any branch.
Instead the workflow now resides in `build.yml` in all branches.

Daily scheduled builds are triggered from `schedule-builds.yml` via
`workflow_dispatch` for all branches.
Display the status of the most recent `workflow_dispatch` build for all
currently supported branches.

Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de>
@ejoerns ejoerns merged commit dde84ea into pengutronix:master Dec 3, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants