-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
39 lines (35 loc) · 1.1 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
name: github-release-matrix-action
description: GitHub Action to generate matrix from GitHub's repository releases via GitHub API.
branding:
icon: 'tag'
color: 'blue'
inputs:
repository:
description: 'Repository owner/name (e.g. "octocat/Hello-World")'
required: true
release:
description: 'Release filter (e.g. "latest", "*"). (Default: "*")'
default: '*'
required: false
prerelease:
description: 'Include prerelease releases. (Default: false)'
default: 'false'
required: false
prefix:
description: 'Remove version prefix from release tag name. (Default: false)'
default: 'false'
required: false
limit:
description: 'Limit the number of releases to fetch. (Default: 3)'
default: '3'
required: false
outputs:
matrix:
description: 'Matrix of GitHub releases'
value: ${{ steps.releases.outputs.matrix }}
runs:
using: "composite"
steps:
- id: releases
shell: bash
run: ${{ github.action_path }}/action.sh "${{ inputs.repository }}" "${{ inputs.release }}" "${{ inputs.prerelease }}" "${{ inputs.prefix }}" "${{ inputs.limit }}"