mirror of
https://gitea.com/gitea/act_runner.git
synced 2026-11-25 21:34:42 +08:00
- Stop overwriting the image's `ImageOS`. `ubuntu-latest` got `ubuntu20` on the 24.04 default image. - Derive `ImageOS` from `os-release` when the image sets none. Fall back to `ubuntu24` for `ubuntu-latest`. - Keep an `ImageOS` set in the job, step or container env. - Honor the image's `ImageOS` on Kubernetes. - Treat steps after a job timeout as cancelled. `cancelled()` and `always()` cleanup now runs. The job still fails. - Record nested reusable workflow results. Jobs that `needs:` a nested call now run. - Forward outputs through nested reusable workflows. A bad output fails the call. - Pass the job's `GITHUB_TOKEN` and `GITEA_TOKEN` to called workflows by default. An explicit mapping overrides them. - Probe a started container's uid and gid concurrently. - Cache the Docker container env from its first inspect. - Check `ImageOS` in the Kubernetes e2e test. --------- Co-authored-by: bircni <bircni@icloud.com> Reviewed-on: https://gitea.com/gitea/runner/pulls/1415 Reviewed-by: bircni <bircni@icloud.com> Co-authored-by: silverwind <me@silverwind.io>
39 lines
1.4 KiB
YAML
39 lines
1.4 KiB
YAML
on: push
|
|
|
|
# Exercises the reusable-workflow caller path against a local reusable workflow: passing typed
|
|
# inputs and secrets (both an explicit map and `inherit`), and reading the called workflow's
|
|
# outputs back through `needs`.
|
|
jobs:
|
|
reusable-workflow:
|
|
uses: ./.github/workflows/local-reusable-workflow.yml
|
|
with:
|
|
string_required: string
|
|
bool_required: ${{ true }}
|
|
number_required: 1
|
|
secrets:
|
|
secret: keep_it_private
|
|
|
|
reusable-workflow-with-inherited-secrets:
|
|
uses: ./.github/workflows/local-reusable-workflow.yml
|
|
with:
|
|
string_required: string
|
|
bool_required: ${{ true }}
|
|
number_required: 1
|
|
secrets: inherit
|
|
|
|
nested-reusable-workflow:
|
|
uses: ./.github/workflows/nested-reusable-workflow.yml
|
|
secrets: inherit
|
|
|
|
output-test:
|
|
runs-on: ubuntu-latest
|
|
needs:
|
|
- reusable-workflow
|
|
- reusable-workflow-with-inherited-secrets
|
|
- nested-reusable-workflow
|
|
steps:
|
|
- run: '[[ "${{ needs.reusable-workflow.outputs.output == ''string'' }}" = "true" ]] || exit 1'
|
|
- run: '[[ "${{ needs.reusable-workflow-with-inherited-secrets.outputs.output == ''string'' }}" = "true" ]] || exit 1'
|
|
- run: '[[ "${{ needs.nested-reusable-workflow.outputs.output == ''string'' }}" = "true" ]] || exit 1'
|
|
- run: '[[ "${{ needs.nested-reusable-workflow.outputs.dependent == ''string'' }}" = "true" ]] || exit 1'
|