Skip to content

Commit cdaa125

Browse files
authored
update actions
1 parent ea6fac3 commit cdaa125

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/build/homebrew-tap-publish.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,8 @@
33
CWD=$(cd $(dirname $0); cd ../../; pwd)
44
VERSION=$(cat $CWD/VERSION)
55

6-
GITHUB_TOKEN=${BREW_REPO_GITHUB_TOKEN}
7-
86
rm -rf ./homebrew-tap
9-
git clone https://${GITHUB_TOKEN}@github.com/subchen/homebrew-tap.git
10-
7+
git clone https://github.com/subchen/homebrew-tap.git
118

129
curl -fSL https://github.com/subchen/frep/releases/download/v1.3.12/frep-1.3.12-linux-amd64 -o ./frep
1310
chmod +x ./frep
@@ -22,4 +19,5 @@ cd homebrew-tap \
2219
&& git config user.email "subchen@gmail.com" \
2320
&& git add ./Formula/frep.rb \
2421
&& git commit -m "Automatic update frep to ${VERSION}" \
22+
&& git remote set-url origin https://${BREW_REPO_GITHUB_TOKEN}@github.com/subchen/homebrew-tap.git
2523
&& git push origin master

0 commit comments

Comments
 (0)