-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
58 lines (55 loc) · 1.68 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
name: Tool Versions Update Action
description: Update tools in your .tool-versions file
branding:
icon: arrow-up-circle
color: blue
inputs:
max:
description: |
The maximum number of tools to update. 0 indicates no maximum.
required: false
default: 0
not:
description: |
A comma-separated list of tools that should NOT be updated.
required: false
default: ""
only:
description: |
A comma-separated list of tools that should be updated, ignoring others.
required: false
default: ""
skip:
description: |
A newline-separated list of "tool version" pairs that should NOT be
updated to.
required: false
default: ""
outputs:
did-update:
description: true if at least one tool was updated, false otherwise.
value: ${{ steps.update.outputs.updated-count != '0' }}
updated-count:
description: The number of tools that were updated.
value: ${{ steps.update.outputs.updated-count }}
updated-new-versions:
description: A comma separated list of the new versions of updated tools.
value: ${{ steps.update.outputs.new-versions }}
updated-old-versions:
description: A comma separated list of the old versions of updated tools.
value: ${{ steps.update.outputs.old-versions }}
updated-tools:
description: A comma separated list of the names of the updated tools.
value: ${{ steps.update.outputs.updated-tools }}
runs:
using: composite
steps:
- name: Look for updates
id: update
shell: bash
run: $GITHUB_ACTION_PATH/bin/update.sh
env:
MAX: ${{ inputs.max }}
NOT: ${{ inputs.not }}
ONLY: ${{ inputs.only }}
SKIP: ${{ inputs.skip }}