Skip to content

Commit c99c7f6

Browse files
committed
Update Homebrew tap to use same repo instead of separate homebrew-tap repo
1 parent 83617aa commit c99c7f6

1 file changed

Lines changed: 8 additions & 18 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -92,29 +92,21 @@ jobs:
9292
ppa/ deploy@gitte-ppa.cego.dk:/var/www/ppa/
9393
rm /tmp/ppa_key
9494
95-
- name: Generate Homebrew tap token
96-
if: github.ref_type == 'tag' && !contains(github.ref_name, '-rc.')
97-
id: tap-token
98-
uses: actions/create-github-app-token@v1
99-
with:
100-
app-id: ${{ secrets.TAP_APP_ID }}
101-
private-key: ${{ secrets.TAP_APP_PRIVATE_KEY }}
102-
owner: cego
103-
repositories: homebrew-tap
104-
105-
- name: Update Homebrew tap
95+
- name: Update Homebrew formula
10696
if: github.ref_type == 'tag' && !contains(github.ref_name, '-rc.')
10797
env:
10898
VERSION: ${{ github.ref_name }}
109-
TAP_TOKEN: ${{ steps.tap-token.outputs.token }}
11099
run: |
111100
SHA_DARWIN_AMD64=$(sha256sum bin/gitte-darwin-amd64.tar.gz | awk '{print $1}')
112101
SHA_DARWIN_ARM64=$(sha256sum bin/gitte-darwin-arm64.tar.gz | awk '{print $1}')
113102
SHA_LINUX_AMD64=$(sha256sum bin/gitte-linux-amd64.tar.gz | awk '{print $1}')
114103
SHA_LINUX_ARM64=$(sha256sum bin/gitte-linux-arm64.tar.gz | awk '{print $1}')
115104
116-
git clone "https://x-access-token:${TAP_TOKEN}@github.com/cego/homebrew-tap.git" tap
117-
cd tap
105+
git config user.email "noc+gitte@cego.dk"
106+
git config user.name "CI"
107+
git fetch origin main
108+
git checkout main
109+
118110
mkdir -p Formula
119111
120112
cat > Formula/gitte.rb << EOF
@@ -154,8 +146,6 @@ jobs:
154146
end
155147
EOF
156148
157-
git config user.email "noc+gitte@cego.dk"
158-
git config user.name "CI"
159149
git add Formula/gitte.rb
160-
git commit -m "gitte ${VERSION}"
161-
git push
150+
git commit -m "Update Homebrew formula for ${VERSION}"
151+
git push origin main

0 commit comments

Comments
 (0)