File tree Expand file tree Collapse file tree 1 file changed +21
-4
lines changed Expand file tree Collapse file tree 1 file changed +21
-4
lines changed Original file line number Diff line number Diff line change @@ -35,13 +35,30 @@ concurrency:
35
35
jobs :
36
36
context :
37
37
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
+
38
45
steps :
39
46
- uses : actions/checkout@v4
40
47
- 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
+
41
57
call_worker :
58
+ needs : context
42
59
uses : ./.github/workflows/worker.yml
43
60
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