File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,13 +35,30 @@ concurrency:
3535jobs :
3636 context :
3737 runs-on : ubuntu-latest
38+
39+ outputs :
40+ boolean : ${{ steps.inputs.outputs.boolean }}
41+ number : ${{ steps.inputs.outputs.number }}
42+ string : ${{ steps.inputs.outputs.string }}
43+ optional : ${{ steps.inputs.outputs.optional }}
44+
3845 steps :
3946 - uses : actions/checkout@v4
4047 - uses : ./.github/actions/context
48+
49+ - id : inputs
50+ shell : bash
51+ run : |
52+ boolean="${{ inputs.boolean || false }}"
53+ number="${{ inputs.number || 10 }}"
54+ string="${{ inputs.string || 'goodbye' }}"
55+ optional="${{ inputs.optional }}"
56+
4157 call_worker :
58+ needs : context
4259 uses : ./.github/workflows/worker.yml
4360 with :
44- boolean : ${{ inputs. boolean == 'true' }}
45- number : ${{ inputs .number }}
46- string : ${{ inputs .string }}
47- optional : ${{ inputs .optional }}
61+ boolean : ${{ needs.context.outputs. boolean }}
62+ number : ${{ needs.context.outputs .number }}
63+ string : ${{ needs.context.outputs .string }}
64+ optional : ${{ needs.context.outputs .optional }}
You can’t perform that action at this time.
0 commit comments