Skip to content

use test repository #43

use test repository

use test repository #43

Workflow file for this run

name: bump-formula-pr
on:
push:
branches:
- "fix-homebrew-automation"
# on:
# release:
# types: [released]
jobs:
homebrew-grafana:
name: homebrew-grafana
runs-on: ubuntu-latest
steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ secrets.ALLOYBOT_APP_ID }}
private-key: ${{ secrets.ALLOYBOT_PRIVATE_KEY }}
owner: 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: Test checking out repo
uses: actions/checkout@v4
with:
repository: grafana/homebrew-grafana-test
token: ${{ steps.app-token.outputs.token }}
path: homebrew-grafana-test
- name: Get latest release
uses: rez0n/actions-github-release@main
id: latest_release
with:
token: ${{ steps.app-token.outputs.token }}
repository: "${{ github.repository }}"
type: "stable"
- name: Setup Homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: Tap Grafana formula repository
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'
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 }}