d5cb50d4a4
* CI: Backport to release branches (#100067) * update backport and release comms * Backport to release branches and change docs source branch for publishing * Add new workflows to CODEOWNERS * Re-add removed line oops * backport-testing -> grafana * checkout grafana repo in backport action, reference repo / branch in reusable action * generate -> create (cherry picked from commit6787cdccb9) * CI: Post-release process branch / PR migration (#100930) * update output for token in release-comms * use token from needs * generate token in individual workflows * Set secrets * define secrest in referenced workflows * wrong secret lol * oops * grafana/grafana -> grafana/grafana-enterprise (cherry picked from commit75189de4f7) * release-v -> release-
29 lines
1.0 KiB
YAML
29 lines
1.0 KiB
YAML
name: Backport PR Creator
|
|
on:
|
|
pull_request_target:
|
|
types:
|
|
- closed
|
|
- labeled
|
|
|
|
jobs:
|
|
main:
|
|
if: github.repository == 'grafana/grafana'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
ref: main
|
|
- name: "Generate token"
|
|
id: generate_token
|
|
uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92
|
|
with:
|
|
app_id: ${{ secrets.GRAFANA_DELIVERY_BOT_APP_ID }}
|
|
private_key: ${{ secrets.GRAFANA_DELIVERY_BOT_APP_PEM }}
|
|
- run: git config --global user.email '132647405+grafana-delivery-bot[bot]@users.noreply.github.com'
|
|
- run: git config --global user.name 'grafana-delivery-bot[bot]'
|
|
- run: git remote set-url origin "https://grafana-delivery-bot:${{ steps.generate_token.outputs.token }}@github.com/grafana/grafana.git"
|
|
- name: Run backport
|
|
uses: grafana/grafana-github-actions-go/backport@main
|
|
with:
|
|
token: ${{ steps.generate_token.outputs.token }}
|