-
-
Notifications
You must be signed in to change notification settings - Fork 86
34 lines (31 loc) · 1.04 KB
/
update-homebrew.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Update Homebrew
on:
release:
types: [created]
jobs:
update-core:
runs-on: ubuntu-latest
steps:
- name: Get token
id: get-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ vars.PENNY_APP_ID }}
private-key: ${{ secrets.PENNY_APP_PRIVATE_KEY }}
owner: vapor
- name: Add path
run: echo /home/linuxbrew/.linuxbrew/bin >>"${GITHUB_PATH}"
- name: Update Homebrew formula
env:
HOMEBREW_GITHUB_API_TOKEN: ${{ steps.get-token.outputs.token }}
RELEASE_TARBALL_URL: ${{ github.event.release.tarball_url }}
run: |
git config --global user.name 'penny-for-vapor[bot]'
git config --global user.email '${{ vars.PENNY_APP_USER_ID }}+penny-for-vapor[bot]@users.noreply.github.com'
brew tap --force homebrew/core
brew bump-formula-pr \
--no-audit \
--no-browse \
--fork-org=vapor \
--url="${RELEASE_TARBALL_URL}" \
vapor