-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
41 lines (39 loc) · 1.09 KB
/
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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: 'Branch Validator'
description: 'Checks if a GIT branch name is valid.'
author: 'Calvin Wilkinson (KinsonDigital)'
branding:
icon: settings
color: purple
inputs:
branch-name:
description: 'The name of the GIT branch.'
required: true
default: ''
validation-logic:
description: 'The logic expression used to validate the branch name.'
required: true
default: ''
trim-from-start:
description: 'The value to trim from the start of the branch. This is not case sensitive.'
required: false
default: ''
fail-when-not-valid:
description: 'If true, the job will fail if the branch name is not valid.'
required: false
default: true
outputs:
valid-branch:
description: 'True if the branch is valid.'
# These are the arguments that are passed into the console app
runs:
using: 'docker'
image: 'Dockerfile'
args:
- '--branch-name'
- ${{ inputs.branch-name }}
- '--validation-logic'
- ${{ inputs.validation-logic }}
- '--trim-from-start'
- ${{ inputs.trim-from-start }}
- '--fail-when-not-valid'
- ${{ inputs.fail-when-not-valid }}