-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
41 lines (38 loc) · 1.46 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: "Android Gradle Plugin version finder"
description: "Find current stable and latest Android Gradle Plugin version for later use in Github Actions matrix"
inputs:
debug:
description: 'if true, shows additional debug information'
required: false
default: 'false'
version-to-resolve:
description: 'Has to be one of `stable`, `alpha`, `beta`, `rc`. Will be translated into specific version, available under `outputs.resolved-version`. Unrecognised values will be passed through to the output for convenience'
required: false
outputs:
latest-alpha:
description: "Returns latest alpha AGP version"
value: ${{ steps.run-action.outputs.latest-alpha }}
latest-beta:
description: "Returns latest beta AGP version"
value: ${{ steps.run-action.outputs.latest-beta }}
latest-rc:
description: "Returns latest RC AGP version"
value: ${{ steps.run-action.outputs.latest-rc }}
latest-stable:
description: "Returns latest stable AGP version"
value: ${{ steps.run-action.outputs.latest-stable }}
resolved-version:
description: "Semver version resolved from `version-to-resolve`"
value: ${{ steps.run-action.outputs.resolved-version }}
branding:
color: 'green'
icon: 'search'
runs:
using: 'composite'
steps:
- id: run-action
env:
INPUT_DEBUG: ${{ inputs.debug }}
INPUT_VERSION_TO_RESOLVE: ${{ inputs.version-to-resolve }}
run: python3 '${{ github.action_path }}'/entrypoint.py
shell: bash