mirror of
https://gitea.com/gitea/runner.git
synced 2026-08-23 12:27:44 +00:00
825c6af07c
The runner is an application, not a library. `act/model` and `act/exprparser` were the last packages anything outside this repository consumed and they now live in actionslib, so nothing needs the rest of `act` to be importable, and keeping it importable invites the coupling that was just removed. Import paths only, the files are unchanged. Assisted-by: Codet:GPT-5.1-Codex
35 lines
879 B
YAML
35 lines
879 B
YAML
name: local-reusable-workflow
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
string_required:
|
|
required: true
|
|
type: string
|
|
bool_required:
|
|
required: true
|
|
type: boolean
|
|
number_required:
|
|
required: true
|
|
type: number
|
|
secrets:
|
|
secret:
|
|
required: true
|
|
outputs:
|
|
output:
|
|
value: ${{ jobs.reusable.outputs.output }}
|
|
|
|
jobs:
|
|
reusable:
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
output: ${{ steps.gen.outputs.output }}
|
|
steps:
|
|
- name: check inputs and secret arrived
|
|
run: |
|
|
[ "${{ inputs.string_required }}" = "string" ]
|
|
[ "${{ inputs.bool_required }}" = "true" ]
|
|
[ "${{ inputs.number_required }}" = "1" ]
|
|
[ "${{ secrets.secret }}" = "keep_it_private" ]
|
|
- id: gen
|
|
run: echo "output=${{ inputs.string_required }}" >> $GITHUB_OUTPUT
|