Skip to content

Commit 9e24f6e

Browse files
committed
Supply version number from github action input
1 parent fd08006 commit 9e24f6e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/homebrew-bump-formula.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ name: Bump Homebrew formula
44
# or API.
55
on:
66
workflow_dispatch:
7+
# Inputs the workflow accepts.
8+
inputs:
9+
version:
10+
# Friendly description to be shown in the UI instead of 'name'
11+
description: 'Version number'
12+
# Default value if no value is explicitly provided
13+
default: 'v1.0.0'
14+
# Input has to be provided for the workflow to run
15+
required: true
716

817
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
918
jobs:
@@ -24,3 +33,4 @@ jobs:
2433
tap: SpectoLabs/homebrew-tap
2534
# Formula name, required
2635
formula: Hoverfly
36+
tag: ${{ github.event.inputs.version }}

0 commit comments

Comments
 (0)