Action inputs and outputs
The inputs axonpack/shaft-actions takes and the outputs it sets, as of v1.10.0.
This page is for action v1.10.0. Everything else, from the model to the review rules, is set on the dashboard, so the workflow needs no inputs.
Inputs
Set an input under with: on the action's step.
| Input | What it does | Required | Default |
|---|---|---|---|
dry_run | Print the summary and inline comments to the job log instead of posting them. | No | false |
Outputs
A later step in the same job reads an output as steps.<id>.outputs.<name>, once the action's step has an id.
| Output | What it holds |
|---|---|
verdict | blocking, needs-changes or looks-good. |
findings | The number of blocking and should-fix findings. |
summary_url | The link to the summary comment. Empty on a dry run. |
Pass an output to a script through env:. Written straight into run:, an output's text would run as shell:
- uses: axonpack/[email protected]
id: shaft
- run: echo "$RESULT"
env:
RESULT: ${{ steps.shaft.outputs.verdict }}Last updated on