Skip to content

Commit

Permalink
use test repository
Browse files Browse the repository at this point in the history
  • Loading branch information
rfratto committed Jun 11, 2024
1 parent 4131938 commit f1ae27a
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/bump-formula-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
app-id: ${{ secrets.ALLOYBOT_APP_ID }}
private-key: ${{ secrets.ALLOYBOT_PRIVATE_KEY }}
owner: grafana
repositories: alloy,homebrew-grafana
repositories: alloy,homebrew-grafana-test

- name: Get latest release
uses: rez0n/actions-github-release@main
Expand All @@ -32,13 +32,19 @@ jobs:
uses: Homebrew/actions/setup-homebrew@master

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

- name: Update Homebrew formula
# github.event.release.tag_name will have the tag name.
# 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/alloy
fork: false
run: |
brew bump-formula-pr \
--no-browse \
--no-audit \
--no-fork \
--tag v1.1.1 \
--revision 2687a2d854ea1bf39e60ff99b8aeaf3d270874dd \
grafana/grafana-test/alloy
env:
HOMEBREW_DEVELOPER: "1"
HOMEBREW_GITHUB_API_TOKEN: ${{ steps.app-token.outputs.token }}

0 comments on commit f1ae27a

Please sign in to comment.