-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
62 lines (59 loc) · 2.18 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
# SPDX-FileCopyrightText: 2021 Eduard Wolf
#
# SPDX-License-Identifier: Apache-2.0
name: "Upgrade Gradle"
description: "Upgrade the used gradle wrapper to the current version"
inputs:
distribution-type:
description: >
The used distribution type for the wrapper
Possible values: bin, all, default (action doesn't specify the distribution type explicitly)
Default: default
required: false
default: "default"
release-channel:
description: >
The used release channel to load the current version from.
Possible values: current, release-candidate, nightly, release-nightly
Default: current
required: false
default: "current"
add-sha-256-sum:
description: >
Whether to add the distribution checksum or not. This requires the distribution-type to be set to "bin" or "all".
Possible values: true, false
Default: false
required: false
default: "false"
working-directory:
description: >
The working directory must contain the `gradlew` file
Default: .
required: false
default: "./"
outputs:
gradle-version:
description: "the latest gradle version"
value: ${{ steps.upgrade-gradle.outputs.gradle-version }}
sha-256-sum:
description: "the sha 256 sum of the distribution - only emitted, if add-sha-256-sum is set to 'true'"
value: ${{ steps.upgrade-gradle.outputs.sha-256-sum }}
version-information:
description: "the version information of the latest gradle version formatted for usage in a pull request body"
value: ${{ steps.upgrade-gradle.outputs.version-information }}
fixed-issues:
description: "the fixed issues of the latest gradle version"
value: ${{ steps.upgrade-gradle.outputs.fixed-issues }}
known-issues:
description: "the known issues of the latest gradle version"
value: ${{ steps.upgrade-gradle.outputs.known-issues }}
runs:
using: composite
steps:
- run: ${{ github.action_path }}/upgrade-gradle.sh "${{ inputs.distribution-type }}" "${{ inputs.release-channel }}" "${{ inputs.add-sha-256-sum }}"
id: upgrade-gradle
working-directory: ${{ inputs.working-directory }}
shell: bash
branding:
icon: arrow-up-circle
color: green