action-file

command module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2020 License: MIT Imports: 11 Imported by: 0

README

File Action

This action writes a file from an input value optionally decoding the content.

Inputs

path

optional

The path to the file to write. Will be generated if omitted.

content

required

Content of the file.

encoding

optional

  • base64
  • base58
  • base32

If present, the action will decode

Outputs

path

The path of resulting file relative to the workspace.

Example usage

- id:   file
  uses: ./
  with:
    encoding: "base64"
    content: "aGVsbG8gd29ybGQ="
- run: |
     [[ -f ${{ steps.file.outputs.path }} ]]
     [[ "$(cat ${{ steps.file.outputs.path }})" == "hello world" ]]

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL