diff --git a/.github/workflows/bump-formula-pr.yml b/.github/workflows/bump-formula-pr.yml index 9ef1ca3784..ec37a18e16 100644 --- a/.github/workflows/bump-formula-pr.yml +++ b/.github/workflows/bump-formula-pr.yml @@ -1,7 +1,11 @@ name: bump-formula-pr on: - release: - types: [released] + push: + branches: + - "fix-homebrew-automation" +# on: +# release: +# types: [released] jobs: homebrew-grafana: @@ -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