-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
43 lines (43 loc) · 1.12 KB
/
action.yml
File metadata and controls
43 lines (43 loc) · 1.12 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
name: GitHub Release Lookup
description: Looks up a GitHub repository release.
branding:
icon: cloud
color: gray-dark
inputs:
github_token:
description: GitHub token to use for authentication.
required: true
owner:
description: GitHub repository owner.
required: true
repository:
description: GitHub repository.
required: true
tag_prefix:
description: Version tag prefix.
required: false
default: v
version:
description: Version of the GitHub release to lookup; `latest` is supported.
required: false
default: latest
outputs:
tag_name:
description: Validated tag name.
value: ${{ steps.lookup.outputs.tag_name }}
version:
description: Validated version.
value: ${{ steps.lookup.outputs.version }}
runs:
using: composite
steps:
- name: Lookup
id: lookup
shell: bash
env:
GITHUB_TOKEN: ${{ inputs.github_token }}
OWNER: ${{ inputs.owner }}
REPOSITORY: ${{ inputs.repository }}
VERSION: ${{ inputs.version }}
TAG_PREFIX: ${{ inputs.tag_prefix }}
run: ${GITHUB_ACTION_PATH}/scripts/lookup.sh