-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaction.yml
More file actions
22 lines (22 loc) · 774 Bytes
/
action.yml
File metadata and controls
22 lines (22 loc) · 774 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
name: 'Environment Variable Replacer'
description: 'Replaces __ENV_VARIABLE_NAME__ placeholders in files with environment variable values.'
author: 'Inkarnate'
branding:
icon: 'terminal'
color: 'red'
inputs:
filename:
description: 'File for replacement.'
files:
description: 'A newline delimited list of files for replacement.'
min-variable-length:
description: 'Environment variable names must be at least this many characters long to be processed, or set to 0 to process all variables.'
required: false
default: '2'
runs:
using: 'docker'
image: 'Dockerfile'
env:
ACTION_INPUTS_FILENAME: ${{ inputs.filename }}
ACTION_INPUTS_FILENAMES: ${{ inputs.files }}
ACTION_INPUTS_MIN_VARIABLE_LENGTH: ${{ inputs.min-variable-length }}