Update backport to latest, test it #4364
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Backport PR Creator | |
on: | |
pull_request_target: | |
types: | |
- closed | |
- labeled | |
permissions: | |
contents: read | |
pull-requests: write | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
# TODO - after testing, only run on close/merge | |
if : ${{ github.repository == 'grafana/alloy' }} # && github.event.pull_request.merged == true }} | |
steps: | |
- name: Checkout Actions | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
repository: "grafana/grafana-github-actions" | |
path: ./actions | |
ref: main | |
- name: Install Actions | |
run: npm install --production --prefix ./actions | |
- name: Run backport | |
uses: ./actions/backport | |
with: | |
token: ${{secrets.GITHUB_TOKEN}} | |
labelsToAdd: "backport" | |
title: "[{{base}}] {{originalTitle}}" |