Skip to content

Commit cec12c6

Browse files
committed
feat: add GitHub Actions workflows for manual and release Homebrew updates
1 parent fb5f64c commit cec12c6

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.github/workflows/homebrew-manual.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Manual Homebrew Update
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
releaseVersion:
6+
description: 'Version of the existing release to update Homebrew formula for (e.g., 2.1.0)'
7+
required: true
8+
9+
jobs:
10+
homebrew:
11+
name: Update Homebrew Formula
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Update Homebrew Formula
15+
uses: dawidd6/action-homebrew-bump-formula@v4
16+
with:
17+
token: ${{ secrets.HOMEBREW_PR_TOKEN }}
18+
formula: openapi-diff
19+
tag: ${{ github.event.inputs.releaseVersion }}
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Update Homebrew Formula On Release
2+
on:
3+
release:
4+
types: [released]
5+
6+
jobs:
7+
homebrew:
8+
name: Update Homebrew Formula
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Update Homebrew Formula
12+
uses: dawidd6/action-homebrew-bump-formula@v4
13+
with:
14+
token: ${{ secrets.HOMEBREW_PR_TOKEN }}
15+
formula: openapi-diff

0 commit comments

Comments
 (0)