forked from iamtheyammer/branch-env-vars
-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
23 lines (23 loc) · 813 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
name: 'Branch-based environment variables that rock'
branding:
icon: 'git-branch'
color: 'black'
description: |
An easy way to set envronment variables based on the building branch. Check out the full README for instructions.
inputs:
bevOverwrite:
description: 'Overwrite other, already-set environment variables with the same name'
default: true
required: false
bevActionOnNoRef:
description: |
What to do when there is no GITHUB_REF: 'error' (fail the build), 'warn' (print a warning but pass), 'continue' (pass and continue silently)
default: warn
required: false
bevSetEmptyVars:
description: 'Whether to set an environment variable to an empty string if no value is provided'
default: true
required: false
runs:
using: 'node12'
main: 'dist/index.js'