gitea/templates
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
..
admin Fix code tag style problem and LFS view bug (#35628) 2025-10-12 02:38:42 +08:00
api/packages/pypi
base Fix code tag style problem and LFS view bug (#35628) 2025-10-12 02:38:42 +08:00
custom
devtest Refactor mail template and support preview (#34990) 2025-07-09 10:25:25 +08:00
explore Forks repository list page follow other repositories page (#34784) 2025-06-21 12:27:25 -07:00
mail Fix various bugs (#35684) 2025-10-19 00:37:50 +08:00
org Fix package link setting can only list limited repositories (#35394) 2025-09-11 01:50:17 +02:00
package Fix package link setting can only list limited repositories (#35394) 2025-09-11 01:50:17 +02:00
projects Fix code tag style problem and LFS view bug (#35628) 2025-10-12 02:38:42 +08:00
repo Improve online runner check (#35722) 2025-10-24 12:02:52 -07:00
shared Fix context usages (#35348) 2025-08-27 11:00:01 +00:00
status Enforce two-factor auth (2FA: TOTP or WebAuthn) (#34187) 2025-04-28 15:31:59 -07:00
swagger Make "update file" API can create a new file when SHA is not set (#35738) 2025-10-24 12:46:54 +08:00
user Fix code tag style problem and LFS view bug (#35628) 2025-10-12 02:38:42 +08:00
webhook
home.tmpl Misc CSS fixes (#34638) 2025-06-07 19:57:07 +02:00
install.tmpl Fix various trivial frontend problems (#34263) 2025-04-24 09:11:54 +08:00
post-install.tmpl Add post-installation redirect based on admin account status (#34493) 2025-06-21 18:48:06 +00:00