https://github.com/streetsidesoftware/action-set-output
A GitHub Action to set the output value to any text value.
https://github.com/streetsidesoftware/action-set-output
Last synced: 3 months ago
JSON representation
A GitHub Action to set the output value to any text value.
- Host: GitHub
- URL: https://github.com/streetsidesoftware/action-set-output
- Owner: streetsidesoftware
- Created: 2023-01-14T20:00:51.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-19T06:08:16.000Z (about 2 years ago)
- Last Synced: 2026-01-29T07:03:38.055Z (4 months ago)
- Size: 20.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# streetsidesoftware/action-set-output
A GitHub Action to set the output value to any text value.
Writing script commands to set the output of a step can be painful.
This composite action makes that simple.
## Usage
```yaml
steps:
- id: markdown
uses: streetsidesoftware/action-set-output@v1
with:
value: |
# Heading
We want to use some markdown in our text.
- name: Show Markdown
env:
MARKDOWN: ${{ steps.markdown.outputs.value }}
run: |
echo "$MARKDOWN" >> $GITHUB_STEP_SUMMARY
```
## Inputs
```yaml
inputs:
value:
description: The value to return.
required: true
debug:
description: Show the value in the console.
required: false
```
## The Action
The entire action is reproduced here to show how simple it is:
```yaml
name: Set Output Value
description: |
Set the output for this step to any text value.
author: "Street Side Software "
inputs:
value:
description: The value to return.
required: true
debug:
description: Show the value in the console.
required: false
outputs:
value:
description: The value that was input.
value: ${{ inputs.value }}
runs:
using: "composite"
steps:
- name: Debug
if: inputs.debug
shell: bash
env:
VALUE: ${{ inputs.value }}
run: |
echo "$VALUE"
```