gitea/models/actions
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
..
artifact.go actions artifacts api list/download check status upload confirmed (#34273) 2025-04-28 16:31:53 +00:00
main_test.go Add unit tests for action runner token (#27670) 2023-10-19 07:24:24 +00:00
run_job_list.go Support Actions concurrency syntax (#32751) 2025-10-10 18:58:55 +00:00
run_job_status_test.go Fix job status aggregation logic (#35000) 2025-07-17 21:12:02 +03:00
run_job.go Refactor ActionRunJob parsing into a reusable function (#35623) 2025-10-11 12:58:36 -07:00
run_list.go Support Actions concurrency syntax (#32751) 2025-10-10 18:58:55 +00:00
run.go Support Actions concurrency syntax (#32751) 2025-10-10 18:58:55 +00:00
runner_list.go Refactor more filterslice (#30370) 2024-04-10 04:18:41 +00:00
runner_token_test.go Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
runner_token.go Refactor "string truncate" (#32984) 2024-12-26 11:56:03 +08:00
runner.go Improve online runner check (#35722) 2025-10-24 12:02:52 -07:00
schedule_list.go Avoid user does not exist error when detecting schedule actions when the commit author is an external user (#30357) 2024-04-11 15:11:32 +08:00
schedule_spec_list.go Small refactor to reduce unnecessary database queries and remove duplicated functions (#33779) 2025-03-04 18:25:20 +00:00
schedule_spec_test.go Fix milestone deadline and date related problems (#32339) 2024-11-05 07:46:40 +00:00
schedule_spec.go Use UTC as default timezone when schedule Actions cron tasks (#31742) 2024-08-01 10:02:46 +00:00
schedule.go Use db.WithTx/WithTx2 instead of TxContext when possible (#35130) 2025-07-22 10:02:01 -07:00
status.go Run gopls modernize on codebase (#34751) 2025-06-18 01:48:09 +00:00
task_list.go Add endpoint deleting workflow run (#34337) 2025-05-13 19:18:13 +00:00
task_output.go Fix no ActionTaskOutput table waring (#28149) 2023-11-21 08:02:51 +00:00
task_step.go
task.go Improve online runner check (#35722) 2025-10-24 12:02:52 -07:00
tasks_version.go Use db.WithTx/WithTx2 instead of TxContext when possible (#35130) 2025-07-22 10:02:01 -07:00
utils_test.go
utils.go Use run-name and evaluate workflow variables (#34301) 2025-05-20 02:24:10 +00:00
variable.go Added Description Field for Secrets and Variables (#33526) 2025-03-17 19:24:54 +00:00