Skip to content

Commit 785b0b3

Browse files
actions-userbenfdking
authored andcommitted
fix: release homebrew script
1 parent 6636d45 commit 785b0b3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,11 @@ jobs:
9090
runs-on: ubuntu-latest
9191
needs: release
9292
permissions: write-all
93+
env:
94+
HOMEBREW_ACCESS_TOKEN: ${{ secrets.HOMEBREW_ACCESS_TOKEN }}
9395
steps:
9496
- uses: actions/checkout@v4
95-
- run: HOMEBREW_ACCESS_TOKEN=${{ secrets.HOMEBREW_ACCESS_TOKEN }} ./.hacking/update_homebrew_pr.sh $HOMEBREW_ACCESS_TOKEN
97+
- run: ./.hacking/update_homebrew_pr.sh $HOMEBREW_ACCESS_TOKEN
9698
publish-to-cargo:
9799
name: Publish to Cargo
98100
runs-on: ubuntu-latest

.hacking/update_homebrew_pr.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ echo "VERSION: $VERSION"
1313
REPOSITORY="quarylabs/sqruff"
1414
HOMEBREW_URL="quarylabs/homebrew-quary"
1515
API_URL="https://api.github.com/repos/$REPOSITORY/releases/tags/$VERSION"
16-
STRIPPED_VERSION=${RELEASE_VERSION#v}
16+
STRIPPED_VERSION=${VERSION#v}
1717

1818
git clone \
1919
--depth=1 \

0 commit comments

Comments
 (0)