Skip to content

Commit 41404b3

Browse files
committed
fix(ci): iterate
Signed-off-by: Sven Kanoldt <sven@d34dl0ck.me>
1 parent ca60d77 commit 41404b3

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Release to Homebrew
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
version:
6+
type: string
7+
description: "Version"
8+
required: true
9+
default: "0.7.9"
10+
11+
jobs:
12+
# https://github.com/mislav/bump-homebrew-formula-action
13+
publish-to-brew:
14+
name: post / homebrew
15+
runs-on: macos-latest
16+
steps:
17+
- name: Get version from input
18+
run: |
19+
echo RELEASE_VERSION=${{ github.event.inputs.version }} >> $GITHUB_ENV
20+
echo COMMITTER_TOKEN=${{ secrets.GITHUB_TOKEN }} >> $GITHUB_ENV
21+
shell: bash
22+
- uses: mislav/bump-homebrew-formula-action@v3
23+
# this action needs the COMMITTER_TOKEN to be set in the environment from above
24+
with:
25+
formula-name: t-rec
26+
tag-name: v${{ env.RELEASE_VERSION }}

0 commit comments

Comments
 (0)