Skip to content

WIP: Upgrade google.golang.org/grpc to v1.69.0 #2027

WIP: Upgrade google.golang.org/grpc to v1.69.0

WIP: Upgrade google.golang.org/grpc to v1.69.0 #2027

name: Auto-review Grafanabot PRs
on: pull_request
permissions:
pull-requests: write
contents: write
id-token: write
jobs:
dependabot-reviewer:
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.user.login == 'grafanabot' }}
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Retrieve GitHub App Credentials from Vault
id: get-secrets
uses: grafana/shared-workflows/actions/[email protected]
with:
repo_secrets: |
APP_ID=mimir-github-bot:app_id
PRIVATE_KEY=mimir-github-bot:private_key
- name: Generate GitHub App Token
id: app-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ env.APP_ID }}
private-key: ${{ env.PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
- name: Approve and auto-merge
id: auto-merge
if: contains(github.event.pull_request.head.ref, 'helm-chart-weekly-')
run: |
gh pr merge --auto --squash "$PR_URL"
gh pr review $PR_URL \
--approve -b "**I'm approving** this pull request, since it is a helm release."
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
- name: Manual review is required
if: steps.auto-merge.conclusion != 'success'
run: |
gh pr comment $PR_URL --body "**This PR from grafanabot requires manual review.**"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}