Skip to content

Commit bf99d6f

Browse files
committed
migrate off of dawidd6/action-homebrew-bump-formula
1 parent a9a978e commit bf99d6f

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

.github/workflows/publish.yaml

+15-14
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,27 @@ on:
77

88
jobs:
99
main:
10-
runs-on: ubuntu-latest
10+
runs-on: macos-latest
1111
steps:
1212
- name: Clone repository
1313
uses: actions/checkout@v4
1414

15-
- name: Load secret
16-
uses: 1password/load-secrets-action@v2
17-
with:
18-
export-env: true
19-
env:
20-
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
21-
MY_GITHUB_PAT: op://Developer/GitHub/PAT
15+
- name: Install 1Password CLI
16+
uses: 1password/install-cli-action@v1
2217

2318
- name: Update Homebrew formula
24-
uses: dawidd6/action-homebrew-bump-formula@v3
25-
with:
26-
token: ${{ env.MY_GITHUB_PAT }}
27-
tap: bartekpacia/homebrew-tools
28-
formula: scripts
29-
force: true
19+
run: |
20+
op run -- brew bump-formula-pr \
21+
--message "bump version to $(git describe --tags)" \
22+
--no-browse \
23+
--strict \
24+
--online \
25+
--tag "$(git describe --tags)" \
26+
--revision "$(git rev-parse HEAD)" \
27+
scripts
28+
env:
29+
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
30+
HOMEBREW_GITHUB_API_TOKEN: op://Developer/GitHub/PAT
3031

3132
- name: Create release on GitHub
3233
uses: softprops/action-gh-release@v1

0 commit comments

Comments
 (0)