Giter Club home page Giter Club logo

decode-base64-github-action's Introduction

decode-base64-github-action

This action sets a Base64 string to an environment variable or writes it to a file.

Usage

Simple usage

- uses: akiojin/[email protected]
  id: decode-base64
  with:
    base64: <Base64>
- run: |
    echo ${{ steps.decode-base64.outputs.decoded }}

Example of default output path

- uses: akiojin/[email protected]
  id: decode-base64
  with:
    base64: <Base64>
- run: |
    echo "Path=${{ steps.decode-base64.outputs.output-path }}"
    cat ${{ steps.decode-base64.outputs.output-path }}

Example of specifying a file path for output

- uses: akiojin/[email protected]
  id: decode-base64
  with:
    base64: <Base64>
    output-path: ${{ runner.temp }}/tmp.txt
- run: |
    echo "Path=${{ steps.decode-base64.outputs.output-path }}"
    cat ${{ steps.decode-base64.outputs.output-path }}

Example of setting an environment variable

- uses: akiojin/[email protected]
  with:
    base64: <Base64>
    environment: DECODED
- run: |
    echo $DECODED

Parameters

inputs

Name Required Type Default Description
base64 true string Specifies a Base64 string to decode.
environment false string '' To also set the decoded string to an environment variable, specify the name of the environment variable in this parameter.If this value is set, the environment variable will be set to the decoded result.If omitted, the environment variable will not be set.
output-path false string '' To output the decoded string to the specified file, specify a path in this parameter.If omitted, the internally set path is used and passed to outputs.output-path.

outputs

Name Type Description
decoded string The decoded string is set.
output-path string The file path where the decoded string was written out.

License

Any contributions made under this project will be governed by the MIT License.

decode-base64-github-action's People

Contributors

akiojin avatar dependabot[bot] avatar github-actions[bot] avatar

Watchers

 avatar  avatar

Forkers

leo-xtell

decode-base64-github-action's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.