-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
76 lines (74 loc) · 2.29 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: 'Version Miner'
description: 'Pulls versions out from various types of files.'
author: 'Calvin Wilkinson (KinsonDigital)'
branding:
icon: search
color: purple
inputs:
repo-owner:
description: 'The owner of the repository'
required: true
repo-name:
description: 'The name of the repository'
required: true
repo-token:
description: 'The GitHub or PAT token used to authenticate to the repository.'
required: true
branch-name:
description: 'The name of the branch where the file lives.'
required: true
file-format:
description: 'The type of file that contains the version. Currently the only supported type value is "xml".'
required: true
file-path:
description: 'The path to the file relative to the root of the repository.'
required: true
version-keys:
description: 'The key(s) that can possibly hold the version in the file.'
required: true
case-sensitive-keys:
description: 'If true, the key search will be case sensitive.'
required: false
default: true
trim-start-from-branch:
description: 'Trims the start from the ''branch-name'' value.'
required: false
default: ''
fail-on-key-value-mismatch:
description: 'If true, the action will fail if all of the key values listed in the "version-keys" input do not match.'
required: false
default: false
fail-when-version-not-found:
description: 'If true, will fail the action if the version is not found.'
required: false
default: true
outputs:
version:
description: 'The version pulled from a file.'
# These are the arguments that are passed into the console app
runs:
using: 'docker'
image: 'Dockerfile'
args:
- '--repo-owner'
- ${{ inputs.repo-owner }}
- '--repo-name'
- ${{ inputs.repo-name }}
- '--repo-token'
- ${{ inputs.repo-token }}
- '--branch-name'
- ${{ inputs.branch-name }}
- '--file-format'
- ${{ inputs.file-format }}
- '--file-path'
- ${{ inputs.file-path }}
- '--version-keys'
- ${{ inputs.version-keys }}
- '--case-sensitive-keys'
- ${{ inputs.case-sensitive-keys }}
- '--trim-start-from-branch'
- ${{ inputs.trim-start-from-branch }}
- '--fail-on-key-value-mismatch'
- ${{ inputs.fail-on-key-value-mismatch }}
- '--fail-when-version-not-found'
- ${{ inputs.fail-when-version-not-found }}