-
Notifications
You must be signed in to change notification settings - Fork 241
44 lines (39 loc) · 1.23 KB
/
bump-formula-pr.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
35
36
37
38
39
40
41
42
43
44
name: bump-formula-pr
on:
push:
branches:
- "fix-homebrew-automation"
# on:
# release:
# types: [released]
jobs:
homebrew-grafana:
name: homebrew-grafana
runs-on: ubuntu-latest
steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ secrets.ALLOYBOT_APP_ID }}
private-key: ${{ secrets.ALLOYBOT_PRIVATE_KEY }}
owner: grafana
repositories: alloy,homebrew-grafana
- name: Get latest release
uses: rez0n/actions-github-release@main
id: latest_release
with:
token: ${{ steps.app-token.outputs.token }}
repository: "${{ github.repository }}"
type: "stable"
- name: Setup Homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: Tap Grafana formula repository
run: brew tap grafana/grafana-test
- name: Update Homebrew formula
# if: 'steps.latest_release.outputs.release_id == github.event.release.id'
uses: Homebrew/actions/bump-packages@master
with:
# Required, custom GitHub access token with the 'public_repo' and 'workflow' scopes
token: ${{ steps.app-token.outputs.token }}
formulae: grafana/grafana-test/alloy
fork: false