Commit a2d3946
authored
ci: update install-lua-sdk workflow with unified default values (#63)
The problem being solved here is that `workflow_dispatch`,
`workflow_call`, and `schedule` events are often all useful for a single
workflow.
That is - you might want a workflow to run based on:
1. A UI interaction
2. Another workflow calling it
3. On a regular schedule
The first two, and perhaps the last, are all relevant for
`install-lua-sdk`. We might have a one-off test for a particular Lua
version, triggered in Github UI (1).
We might run this after `release-please` publishes a package (2).
And finally, we might want to ensure the package is installable every
day (3).
To make this actually work, you need to ensure default values are
assigned for each input. The cleanest way to do that seems to be some
duplication and a "ternary" technique with environment variables.1 parent 3dfaa0d commit a2d3946
1 file changed
+27
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | 26 | | |
28 | | - | |
| 27 | + | |
29 | 28 | | |
30 | | - | |
| 29 | + | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
34 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
35 | 53 | | |
36 | 54 | | |
37 | 55 | | |
38 | 56 | | |
39 | 57 | | |
| 58 | + | |
40 | 59 | | |
41 | 60 | | |
42 | 61 | | |
43 | | - | |
| 62 | + | |
44 | 63 | | |
45 | 64 | | |
46 | 65 | | |
| |||
55 | 74 | | |
56 | 75 | | |
57 | 76 | | |
58 | | - | |
| 77 | + | |
59 | 78 | | |
60 | 79 | | |
61 | 80 | | |
62 | 81 | | |
63 | 82 | | |
64 | | - | |
| 83 | + | |
65 | 84 | | |
66 | | - | |
| 85 | + | |
67 | 86 | | |
68 | 87 | | |
69 | 88 | | |
70 | 89 | | |
71 | 90 | | |
72 | | - | |
| 91 | + | |
0 commit comments