Skip to content

khulnasoft-lab/action-output

Repository files navigation

khulnasoft-lab/action-output

Easily set and manage the output value for this GitHub Action step, allowing any text value to be returned.

Writing script commands to set the output of a step can be painful. This composite action makes that simple.

Usage

steps:
  - id: markdown
    uses: khulnasoft-lab/action-output@master
    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

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:

name: Set Output Value
description: |
  Set the output for this step to any text value.
author: "KhulnaSoft Lab <[email protected]>"
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"

About

No description, website, or topics provided.

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published