Skip to content

Commit c26fcb4

Browse files
authored
fix: homebrew update (#12)
2 parents 76afbdd + 7dce5da commit c26fcb4

3 files changed

Lines changed: 11 additions & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,10 @@ jobs:
5454
run: |
5555
tag="v${{ steps.semantic.outputs.new_release_version }}"
5656
gh release upload "$tag" ocv-*.tar.gz
57+
58+
- name: Trigger Homebrew tap update
59+
if: steps.semantic.outputs.new_release_published == 'true'
60+
env:
61+
GH_TOKEN: ${{ secrets.GH_PAT }}
62+
run: |
63+
gh workflow run update-homebrew.yml --ref main -f tag=v${{ steps.semantic.outputs.new_release_version }}

.github/workflows/update-homebrew.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,10 @@ name: Update Homebrew tap
33
on:
44
workflow_dispatch:
55
inputs:
6-
version:
7-
description: "Version to bump to (e.g. 1.3.2)"
6+
tag:
7+
description: "Git tag to bump to (e.g. v1.3.5)"
88
required: true
99
type: string
10-
release:
11-
types: [published]
12-
1310
jobs:
1411
bump:
1512
runs-on: ubuntu-latest
@@ -23,4 +20,4 @@ jobs:
2320
token: ${{ secrets.GH_PAT }}
2421
tap: woss/homebrew-tap
2522
formula: ocv
26-
version: ${{ inputs.version || github.event.release.tag_name }}
23+
tag: ${{ inputs.tag }}

version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const VERSION = '1.3.5';
1+
export const VERSION = "1.3.5";

0 commit comments

Comments
 (0)