Skip to content

Commit

Permalink
chore: merge helm request PRs using the grafana-irm-app GitHub App (#…
Browse files Browse the repository at this point in the history
…5078)

# What this PR does

Stop merging Helm release chart PRs as me 🙃 and instead use the "Grafana
IRM App" GitHub App credentials:

<img width="936" alt="Screenshot 2024-09-24 at 2 56 25 PM"
src="https://github.com/user-attachments/assets/477fdad0-4c0b-4ae9-b390-92187fcaf64c">
  • Loading branch information
joeyorlando authored Sep 24, 2024
1 parent 51c72fc commit 9d20f61
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/on-release-published.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,22 @@ jobs:
id-token: write
contents: read
steps:
# This will fetch the secret keys from vault and set them as environment variables for subsequent steps
- name: Get Vault secrets
uses: grafana/shared-workflows/actions/get-vault-secrets@main
with:
repo_secrets: |
GITHUB_API_KEY=github_actions:github-api-key
GH_APP_ID=github-app:app-id
GH_APP_PRIVATE_KEY=github-app:private-key
- name: Generate Github App token
id: generate-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ env.GH_APP_ID }}
private-key: ${{ env.GH_APP_PRIVATE_KEY }}

- name: Merge pull Request
uses: juliangruber/merge-pull-request-action@v1
with:
github-token: ${{ env.GITHUB_API_KEY }}
github-token: ${{ steps.generate-token.outputs.token }}
number: ${{ needs.create-helm-release-pr.outputs.helm_release_pr_number }}

0 comments on commit 9d20f61

Please sign in to comment.