gitea/routers
Zettat123 0d740a6a72
Some checks are pending
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
Improve online runner check (#35722)
This PR moves "no online runner" warning to the runs list. 

A job's `runs-on` may contain expressions like `runs-on: [self-hosted,
"${{ inputs.chosen-os }}"]` so the value of `runs-on` may be different
in each run. We cannot check it through the workflow file.

<details>
  <summary>Screenshots</summary>

Before:

<img width="960" alt="3d2a91746271d8b1f12c8f7d20eba550"
src="https://github.com/user-attachments/assets/7a972c50-db97-49d2-b12b-c1a439732a11"
/>

After:

<img width="960" alt="image"
src="https://github.com/user-attachments/assets/fc076e0e-bd08-4afe-99b9-c0eb0fd2c7e7"
/>
</details>

This PR also splits `prepareWorkflowDispatchTemplate` function into 2
functions:
- `prepareWorkflowTemplate` get and check all of the workflows
- `prepareWorkflowDispatchTemplate` only prepare workflow dispatch
config for `workflow_dispatch` workflows.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-10-24 12:02:52 -07:00
..
api Make "update file" API can create a new file when SHA is not set (#35738) 2025-10-24 12:46:54 +08:00
common add more routes to the "expensive" list (#35547) 2025-09-29 17:33:28 +08:00
install Add proper error message if session provider can not be created (#35520) 2025-09-28 12:24:19 +00:00
private Refactor legacy code (#35708) 2025-10-20 11:43:08 -07:00
utils
web Improve online runner check (#35722) 2025-10-24 12:02:52 -07:00
init.go Use global lock instead of status pool for cron lock (#35507) 2025-09-27 10:11:52 -07:00