Skip to content

Commit

Permalink
test using official GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
rfratto committed Jun 11, 2024
1 parent 7aca045 commit 4131938
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions .github/workflows/bump-formula-pr.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
name: bump-formula-pr
on:
release:
types: [released]
push:
branches:
- "fix-homebrew-automation"
# on:
# release:
# types: [released]

jobs:
homebrew-grafana:
Expand All @@ -24,19 +28,17 @@ jobs:
repository: "${{ github.repository }}"
type: "stable"

- name: Setup Homebrew
uses: Homebrew/actions/setup-homebrew@master

- name: Tap Grafana formula repository
run: brew tap grafana/grafana

- name: Update Homebrew formula
if: 'steps.latest_release.outputs.release_id == github.event.release.id'
uses: dawidd6/action-homebrew-bump-formula@v3
# 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 }}
# Optional, defaults to homebrew/core
tap: grafana/grafana
# Formula name, required
formula: alloy
# Optional, will be determined automatically
tag: ${{github.ref}}
# Optional, will be determined automatically
revision: ${{github.sha}}
# Optional, if don't want to check for already open PRs
force: false # true
formulae: grafana/grafana/alloy
fork: false

0 comments on commit 4131938

Please sign in to comment.