Files
grafana/.github/workflows/backport.yml
T
Kevin Minehart 645af8df33 CI: Backport action can't combine with and working-directory (#104754)
* Can't combine with and working-directory

* add missing uses:
2025-04-29 21:30:52 -05:00

31 lines
1000 B
YAML

name: Backport PR Creator
on:
pull_request_target:
types:
- closed
- labeled
permissions:
contents: write
pull-requests: write
jobs:
main:
if: github.repository == 'grafana/grafana'
runs-on: ubuntu-latest
steps:
- name: Clone
run: git clone --depth=1 "https://github.com/grafana/grafana.git"
- run: cd grafana && git config --local user.name "github-actions[bot]"
- run: cd grafana && git config --local user.email "github-actions[bot]@users.noreply.github.com"
- run: cd grafana && git config --local --add --bool push.autoSetupRemote true
- name: Set remote URL
env:
GIT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: cd grafana && git remote set-url origin "https://grafana-delivery-bot:$GIT_TOKEN@github.com/grafana/grafana.git"
- name: Run backport
uses: grafana/grafana-github-actions-go/backport@main
with:
path: grafana
token: ${{ secrets.GITHUB_TOKEN }}