CI: move workflows/actions to actions (#104711)
* move workflows/actions to actions
* rerun actions
* fix setup-go v5
* unpinned unnecessary pins
* update CODEOWONERS
* update CODEOWONERS
* remove remove-milestone from codeowners
* remove bad key
(cherry picked from commit 2436b4e097)
33 lines
986 B
YAML
33 lines
986 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: Checkout
|
|
uses: actions/checkout@v4 # 4.2.2
|
|
with:
|
|
persist-credentials: false
|
|
- run: git config --local user.name "github-actions[bot]"
|
|
- run: git config --local user.email "github-actions[bot]@users.noreply.github.com"
|
|
- run: git config --local --add --bool push.autoSetupRemote true
|
|
- name: Set remote URL
|
|
env:
|
|
GIT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: |
|
|
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 # zizmor: ignore[unpinned-uses]
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|