-
Notifications
You must be signed in to change notification settings - Fork 4
46 lines (42 loc) · 2.06 KB
/
homebrew.yaml
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
35
36
37
38
39
40
41
42
43
44
45
46
# `name` value will appear "as is" in the badge.
# See https://docs.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow#adding-a-workflow-status-badge-to-your-repository
# yamllint --format github .github/workflows/homebrew.yaml
---
name: homebrew
on:
workflow_dispatch:
inputs:
formula:
description: Homebrew formula. Ex envoy or [email protected]
required: true
tag-name:
description: Release tag of envoy. Ex v1.18.5
required: true
# These pull requests create pull requests against a remote repository. This implies the following:
# 1. Create TOKEN with "public_repo" scope https://github.com/settings/tokens
# 2. Assign that as PACKAGE_BUMP_TOKEN https://github.com/organizations/tetratelabs/settings/secrets/actions/new
#
# To ensure PRs appear non-personal, use an org-specific name and the noreply email of tetratelabs
# Ex. curl -s https://api.github.com/users/tetratelabs|jq '.id, .login'
env:
GIT_USER_NAME: Tetrate Labs CI
GIT_USER_EMAIL: [email protected]
GIT_COMMITTER: Tetrate Labs CI <[email protected]>
jobs:
homebrew: # help ourselves until https://github.com/envoyproxy/envoy/issues/17500
name: "Homebrew/homebrew-core"
runs-on: ubuntu-20.04 # Hard-coding an LTS means maintenance, but only once each 2 years!
steps:
- name: "Configure git"
run: |
git config --global user.name "${GIT_USER_NAME}"
git config --global user.email "${GIT_USER_EMAIL}"
- name: "Bump Formula PR"
# Same as: brew bump-formula-pr --no-browse --no-audit --version "${tag-name}" "${formula}"
uses: mislav/bump-homebrew-formula-action@v2
with:
formula-name: ${{ github.event.inputs.formula }}
tag-name: ${{ github.event.inputs.tag-name }}
download-url: https://github.com/envoyproxy/envoy/archive/${{ github.event.inputs.tag-name }}.tar.gz
env: # See env section for notes on PACKAGE_BUMP_TOKEN
COMMITTER_TOKEN: ${{ secrets.PACKAGE_BUMP_TOKEN }}