workflow-call-inputs
Define and validate typed inputs for GitHub Actions reusable workflows, including when a manually dispatched workflow offers choice or environment inputs.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-15
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- workflow-call-inputs
- license
- Apache-2.0
- metadata
- { "source": "akin-ozer/cc-devops-skills", "source-commit": "7fe7595e4512f8ce43dcf956aa5190b96d627dd1", "revision-status": "experimental-unbenchmarked" }
- description
- Define and validate typed inputs for GitHub Actions reusable workflows, including when a manually dispatched workflow offers choice or environment inputs.
02 资源文件 4
- 许可证LICENSE11.1 KB
- 参考文档NOTICE.md838 B
- 参考文档provenance/original-reusable-workflow.yml2.7 KB
- 参考文档provenance/original-SKILL.md11.9 KB
03 SKILL.md 正文
Reusable workflow input types
Apply the mandatory agent-tool policy and the current project's workflow instructions. This adaptation addresses input types only; it does not qualify the source generator's other templates.
For on.workflow_call.inputs, GitHub requires each input's type to be
boolean, number, or string. Use a value matching the declared type for
an optional default. Here is a complete reusable workflow:
name: Reusable input example
on:
workflow_call:
inputs:
target:
type: string
required: true
repetitions:
type: number
default: 2
verbose:
type: boolean
default: false
jobs:
show:
runs-on: ubuntu-latest
steps:
- name: Show inputs
env:
TARGET: ${{ inputs.target }}
REPETITIONS: ${{ inputs.repetitions }}
VERBOSE: ${{ inputs.verbose }}
run: printf 'target=%s repetitions=%s verbose=%s\n' "$TARGET" "$REPETITIONS" "$VERBOSE"
workflow_dispatch additionally supports choice and environment inputs;
those are not valid workflow_call input types. If a reusable workflow needs
one of those values, receive it as a string and check any allowed-value or
environment requirements appropriate to that workflow. Do not assume a
manual selection alone configures the called job's environment.
Check both the caller and the called workflow, including default values and expressions. Validate the generated files with the project's available GitHub Actions tooling and review current GitHub documentation. Static linting can catch invalid definitions; it does not prove that a hosted run will succeed. The component controls cover selected definitions and have not measured agent effectiveness.
04 同仓库更多 Skills
makefile-generator-project-wrappers
Repair Python, Java and generic GNU Make wrappers that report false success, miss changed inputs or clean dependency environments. Preserve the actual project build system and test runner; use when adapting the collection's original Makefile generator.
makefile-generator-go
Author or repair GNU Make wrappers for Go modules, retaining Go's dependency discovery and build cache. Use when wrapper timestamps hide embedded-resource changes or build failures; preserve the project's existing build system and real test commands.
strategic-compact-resume
Checkpoint and resume long agent work when context pressure or a handoff could lose constraints, verified progress, or ownership of active jobs.
makefile-generator-cpp
Author or repair GNU Make builds for C++ executables, preserving compiler/linker flags, header dependencies and real project test contracts. Use the optional scaffold for a flat src directory; retain an existing build system unless the task requires changing it.
eval-harness-integrity
Design and verify matched coding-agent evaluations when comparing skills, prompts, models, or harnesses using executable acceptance checks and native result evidence.
eval-harness-evidence
Design and verify matched coding-agent evaluations when comparing skills, prompts, models, or harnesses using executable acceptance checks and native result evidence.