File tree Expand file tree Collapse file tree 1 file changed +44
-3
lines changed Expand file tree Collapse file tree 1 file changed +44
-3
lines changed Original file line number Diff line number Diff line change 1
- # Output from this workflow available here:
1
+ # CI output from these examples are available here:
2
2
# https://github.com/gaggle/elixir_script/actions/workflows/examples.yml?query=branch%3Amain
3
+ #
4
+ # ℹ️ This file is automatically generated via `mix e2e.update_examples_workflow`
3
5
4
6
name : Examples
5
7
13
15
workflow_dispatch :
14
16
15
17
jobs :
16
- io-visible-in-logs-and-return-value-available-via-outputs :
18
+ scripts-are-run-and-what-it-returns-is-available-via-outputs :
19
+ runs-on : ubuntu-latest
20
+ steps :
21
+ - uses : gaggle/elixir_script@v0
22
+ id : script
23
+ with :
24
+ script : |
25
+ defmodule Foo do
26
+ def bar, do: "bar"
27
+ end
28
+ Foo.bar()
29
+
30
+ - name : Get result
31
+ run : echo "${{steps.script.outputs.result}}"
32
+
33
+ io-is-visible-in-logs :
34
+ runs-on : ubuntu-latest
35
+ steps :
36
+ - uses : gaggle/elixir_script@v0
37
+ id : script
38
+ with :
39
+ script : |
40
+ IO.puts("Hello world")
41
+
42
+ - name : Get result
43
+ run : echo "${{steps.script.outputs.result}}"
44
+
45
+ event-context-is-available :
46
+ runs-on : ubuntu-latest
47
+ steps :
48
+ - uses : gaggle/elixir_script@v0
49
+ id : script
50
+ with :
51
+ script : |
52
+ Map.keys(context) |> Enum.sort
53
+
54
+ - name : Get result
55
+ run : echo "${{steps.script.outputs.result}}"
56
+
57
+ multiline-scripts-are-possible :
17
58
runs-on : ubuntu-latest
18
59
steps :
19
60
- uses : gaggle/elixir_script@v0
20
61
id : script
21
62
with :
22
63
script : |
23
64
IO.puts("Hello world")
24
- "return "
65
+ "result "
25
66
26
67
- name : Get result
27
68
run : echo "${{steps.script.outputs.result}}"
You can’t perform that action at this time.
0 commit comments