-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
51 lines (51 loc) · 1.26 KB
/
action.yml
File metadata and controls
51 lines (51 loc) · 1.26 KB
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
name: 'Get Last Version'
description: 'Get the latest stable version of a GitHub project or other software'
inputs:
action:
description: 'The action to perform (e.g., get)'
required: false
default: 'get'
repository:
description: 'Repository URL or software name'
required: false
branch:
description: 'Branch name (optional)'
required: false
format:
description: 'The output format of the result (version, json, or assets)'
required: false
default: 'version'
extra_args:
description: 'Extra args'
required: false
github_token:
description: 'GitHub token (optional)'
required: false
working_directory:
description: 'The working directory for the action'
required: false
default: './'
outputs:
last_version:
description: 'The latest stable version'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- "--action"
- ${{ inputs.action }}
- "--format"
- ${{ inputs.format }}
- "--repository"
- ${{ inputs.repository }}
- "--branch"
- ${{ inputs.branch }}
- "--github_token"
- ${{ inputs.github_token }}
- "--extra_args"
- ${{ inputs.extra_args }}
- "--working_directory"
- ${{ inputs.working_directory }}
branding:
icon: 'arrow-down'
color: 'purple'