Skip to content

Commit d139839

Browse files
committed
Ensure that homebrew tap is tagged with version.
Signed-off-by: Thomas Hallgren <[email protected]>
1 parent 3523d79 commit d139839

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/release.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,9 @@ jobs:
150150
151151
![Assets](https://static.scarf.sh/a.png?x-pxid=d842651a-2e4d-465a-98e1-4808722c01ab)
152152
- uses: actions/checkout@v4
153-
if: needs.publish-release.semver_check.outputs.draft != true
153+
if: needs.publish-release.semver_check.outputs.make_latest
154154
- name: Update Homebrew
155-
if: needs.publish-release.semver_check.outputs.draft != true
155+
if: needs.publish-release.semver_check.outputs.make_latest
156156
run: |
157157
v=${{ github.ref_name }}
158158
packaging/homebrew-package.sh "${v#v}" tel2oss "${{ vars.GH_BOT_USER }}" "${{ vars.GH_BOT_EMAIL }}" "${{ secrets.HOMEBREW_TAP_TOKEN }}"

packaging/homebrew-package.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,14 @@ git config --local user.name "${GITHUB_USER}"
125125

126126
git add "${FORMULA}"
127127
git commit -m "Release ${VERSION}"
128+
git tag --message "Release ${VERSION}" "${VERSION}"
128129

129130
# This cat is just so we can see the formula in case
130131
# the git permissions are incorrect and we can't publish
131132
# the change. Once we know the automation is working, we can
132133
# remove it.
133134
cat "${FORMULA}"
134-
git push origin main
135+
git push origin "${VERSION}" main
135136

136137
# Clean up the working directory
137138
rm -rf "${WORK_DIR}"

0 commit comments

Comments
 (0)