Skip to content

Commit cfd3e86

Browse files
committed
fuck actions, bless curl
1 parent 38810a9 commit cfd3e86

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/release.yaml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,14 @@ jobs:
9898
- name: update homebrew formulas
9999
# re-enable when we only wanna build for stable releases
100100
# if: ${{ steps.build.outputs.prerelease == "false" }}
101-
uses: unRob/homebrew-formulas@latest
102-
secrets:
103-
token: ${{ secrets.FORMULAS_PAT }}
104-
with:
105-
version: ${{ steps.build.outputs.version }}
106-
formula: milpa
101+
env:
102+
GITHUB_TOKEN: ${{ secrets.FORMULAS_PAT }}
103+
VERSION: ${{ steps.build.outputs.version }}
104+
run: |
105+
curl -L \
106+
-X POST \
107+
-H "Accept: application/vnd.github+json" \
108+
-H "Authorization: Bearer $GITHUB_TOKEN" \
109+
-H "X-GitHub-Api-Version: 2022-11-28" \
110+
https://api.github.com/repos/unRob/homebrew-formulas/actions/workflows/version-bump.yml/dispatches \
111+
-d '{"ref":"main","inputs":{ "formula": "Formula/milpa.rb", "version": "'"$VERSION"'" }}'

0 commit comments

Comments
 (0)