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 eeb960a
Showing 1 changed file with 28 additions and 8 deletions.
36 changes: 28 additions & 8 deletions .github/workflows/bump-formula-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,15 @@ 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: Setup Git
run: |
git config --global user.name "grafana-alloybot[bot]"
git config --global user.email "879451+grafana-alloybot[bot]@users.noreply.github.com"
gh auth setup-git
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}

- name: Get latest release
uses: rez0n/actions-github-release@main
Expand All @@ -31,14 +39,26 @@ jobs:
- name: Setup Homebrew
uses: Homebrew/actions/setup-homebrew@master

- name: Test checking out repo
run: |
git clone https://github.com/grafana/homebrew-grafana-test homebrew-grafana-test --origin=origin --template= --config core.fsmonitor=false
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}

- name: Tap Grafana formula repository
run: brew tap grafana/grafana
run: brew tap grafana/grafana-test
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}

- 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/alloy
fork: false
run: |
brew bump-formula-pr \
--no-browse \
--no-audit \
--no-fork \
--url https://github.com/grafana/alloy/archive/refs/tags/v1.1.1.tar.gz \
grafana/grafana-test/alloy
env:
HOMEBREW_DEVELOPER: "1"
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}

0 comments on commit eeb960a

Please sign in to comment.