You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Elixir Script
v0.0.0
Pre-release
This action makes it easy to quickly write and execute an Elixir script in your workflow.
To use this action, provide an input named script
that contains the body of an Elixir function call.
The following arguments are available in the script's context:
github
A pre-authenticated tentacat GitHub clientcontext
A map containing the context of the workflow run
Since the script is just a function body, these values will already be defined, so you don't have to import them.
The return value of the script will be in the step's outputs under the "result" key.
- uses: gaggle/elixir_script@v0
id: script
with:
script: <your_elixir_code_here>
- name: Get result
run: echo "${{steps.script.outputs.result}}"