Skip to content

Lightpanda: the headless browser designed for AI and automation

ci: trigger homebrew-browser formula update after release

Pierre Tachoire4314148b70ca
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index f1bb9c2ff..c2acdc17a 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -171,3 +171,24 @@ jobs:
gh workflow run ci \
--repo lightpanda-io/browser-docker \
--field tag="${{ env.RELEASE }}"
+
+ update-homebrew-formula:
+ needs: [build-linux, build-macos]
+ runs-on: ubuntu-latest
+ steps:
+ - name: Generate token for homebrew-browser
+ id: app-token
+ uses: actions/create-github-app-token@v2
+ with:
+ app-id: ${{ secrets.DISTRIBUTION_APP_ID }}
+ private-key: ${{ secrets.DISTRIBUTION_APP_PRIVATE_KEY }}
+ owner: lightpanda-io
+ repositories: homebrew-browser
+
+ - name: Trigger homebrew formula update
+ env:
+ GH_TOKEN: ${{ steps.app-token.outputs.token }}
+ run: |
+ gh workflow run ci \
+ --repo lightpanda-io/homebrew-browser \
+ --field tag="${{ env.RELEASE }}"