diff --git a/.github/workflows/bump-formula-pr.yml b/.github/workflows/bump-formula-pr.yml new file mode 100644 index 000000000000..b9dc9e697ddd --- /dev/null +++ b/.github/workflows/bump-formula-pr.yml @@ -0,0 +1,44 @@ +name: bump-formula-pr +on: + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + push: + tags: + - 'v*' +jobs: + homebrew-core: + name: homebrew-core + runs-on: macos-latest + steps: + - name: Update Homebrew formula + uses: dawidd6/action-homebrew-bump-formula@v3 + with: + # Required, custom GitHub access token with the 'public_repo' and 'workflow' scopes + token: ${{secrets.HOMEBREW_FORMULA_GH_TOKEN}} + # Formula name, required + formula: grafana-agent + # 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 + homebrew-grafana: + name: homebrew-grafana + runs-on: macos-latest + steps: + - name: Update Homebrew formula + uses: dawidd6/action-homebrew-bump-formula@v3 + with: + # Required, custom GitHub access token with the 'public_repo' and 'workflow' scopes + token: ${{secrets.HOMEBREW_FORMULA_GH_TOKEN}} + # Optional, defaults to homebrew/core + tap: grafana/grafana + # Formula name, required + formula: grafana-agent + # 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