Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mkungla/actions-set-text-output
A simple composite actions to set the job output while maintaining the text format e.g. markdown format and multi-line strings.
https://github.com/mkungla/actions-set-text-output
actions github-action github-actions
Last synced: 27 days ago
JSON representation
A simple composite actions to set the job output while maintaining the text format e.g. markdown format and multi-line strings.
- Host: GitHub
- URL: https://github.com/mkungla/actions-set-text-output
- Owner: mkungla
- License: mit
- Created: 2021-09-15T23:47:03.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-16T10:50:40.000Z (almost 2 years ago)
- Last Synced: 2024-12-17T09:44:30.459Z (about 1 month ago)
- Topics: actions, github-action, github-actions
- Homepage: https://github.com/marketplace/actions/set-text-output
- Size: 43.9 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Set text output v1
A simple composite actions to set the job output while maintaining the text format e.g. markdown format and multi-line strings.
[![test](https://github.com/mkungla/actions-set-text-output/actions/workflows/test.yml/badge.svg)](https://github.com/mkungla/actions-set-text-output/actions/workflows/test.yml)
# Usage
**NOTE:** `mkungla/actions-set-text-output@v1` is branch which always has latest `v1.x.x` version.
```yml
- uses: mkungla/actions-set-text-output@v1
id: content
with:
text: |
# Set text outputA simple composite actions to set the job output while maintaining the text format e.g. markdown format.
```# Example
```yml
usage:
runs-on: ubuntu-latest
outputs:
content: ${{ steps.content.outputs.value }}
steps:
- uses: mkungla/actions-set-text-output@v1
id: content
with:
text: |
# Set text outputA simple composite actions to set the job output while maintaining the text format e.g. markdown format.
result:
runs-on: ubuntu-latest
needs: usage
steps:
- if: ${{ !startsWith(needs.test-usage.outputs.content, '# Set text output') }}
run: exit 1
- run: echo "${{ needs.usage.outputs.content }}"
```