Skip to content

Commit 60a73b8

Browse files
StarefossenCopilot
andcommitted
chore: remove update-tap job from release workflow
The homebrew-tap repo polls the public cnctl releases API hourly using its own GITHUB_TOKEN to write to itself. No cross-repo PAT needed. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent a86c191 commit 60a73b8

1 file changed

Lines changed: 0 additions & 38 deletions

File tree

.github/workflows/release.yml

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,6 @@ jobs:
101101
runs-on: ubuntu-latest
102102
permissions:
103103
contents: write
104-
outputs:
105-
tag: ${{ steps.version.outputs.tag }}
106104
steps:
107105
- uses: actions/download-artifact@v8
108106
with:
@@ -135,39 +133,3 @@ jobs:
135133
files: |
136134
artifacts/cnctl-*
137135
artifacts/SHA256SUMS
138-
139-
update-tap:
140-
name: Update Homebrew tap
141-
needs: [release]
142-
runs-on: ubuntu-latest
143-
permissions:
144-
contents: read
145-
steps:
146-
- uses: actions/download-artifact@v8
147-
with:
148-
path: artifacts
149-
merge-multiple: true
150-
151-
- name: Parse checksums
152-
id: sums
153-
run: |
154-
cd artifacts
155-
echo "mac_arm=$(sha256sum cnctl-aarch64-apple-darwin.tar.gz | awk '{print $1}')" >> "$GITHUB_OUTPUT"
156-
echo "mac_x86=$(sha256sum cnctl-x86_64-apple-darwin.tar.gz | awk '{print $1}')" >> "$GITHUB_OUTPUT"
157-
echo "linux_arm=$(sha256sum cnctl-aarch64-unknown-linux-gnu.tar.gz | awk '{print $1}')" >> "$GITHUB_OUTPUT"
158-
echo "linux_x86=$(sha256sum cnctl-x86_64-unknown-linux-gnu.tar.gz | awk '{print $1}')" >> "$GITHUB_OUTPUT"
159-
160-
# Dispatch to homebrew-tap so its own GITHUB_TOKEN writes the formula —
161-
# no cross-repo PAT needed.
162-
- name: Trigger tap update
163-
env:
164-
GH_TOKEN: ${{ github.token }}
165-
run: |
166-
gh api repos/CloudNativeBergen/homebrew-tap/dispatches \
167-
--method POST \
168-
--field event_type=update-formula \
169-
--field client_payload[version]="${{ needs.release.outputs.tag }}" \
170-
--field client_payload[mac_arm]="${{ steps.sums.outputs.mac_arm }}" \
171-
--field client_payload[mac_x86]="${{ steps.sums.outputs.mac_x86 }}" \
172-
--field client_payload[linux_arm]="${{ steps.sums.outputs.linux_arm }}" \
173-
--field client_payload[linux_x86]="${{ steps.sums.outputs.linux_x86 }}"

0 commit comments

Comments
 (0)