0
0
Fork 0
mirror of https://codeberg.org/forgejo/docs.git synced 2025-01-21 02:12:15 -05:00
forgejo-docs/.forgejo/workflows/backport.yml

36 lines
1,013 B
YAML

name: backport
on:
pull_request_target:
types:
- closed
- labeled
jobs:
backporting:
if: >
github.event.pull_request.merged
&&
contains(toJSON(github.event.pull_request.labels), 'backport/v')
runs-on: docker
container:
image: 'data.forgejo.org/oci/node:20-bookworm'
steps:
- name: event info
run: |
cat <<'EOF'
${{ toJSON(github) }}
EOF
- uses: https://data.forgejo.org/actions/git-backporting@v4.8.4
if: secrets.WEBSITETOKEN != ''
with:
target-branch-pattern: '^backport/(?<target>(v.*))$'
strategy: ort
strategy-option: find-renames
cherry-pick-options: -x
auth: ${{ secrets.WEBSITETOKEN }}
pull-request: ${{ github.event.pull_request.url }}
auto-no-squash: true
enable-err-notification: true
git-user: forgejo-backport-action
git-email: forgejo-backport-action@noreply.codeberg.org