mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
Backport bot (#1800)
This commit is contained in:
committed by
GitHub
parent
d039a4a554
commit
62cc392a41
31
.github/workflows/backport.yml
vendored
31
.github/workflows/backport.yml
vendored
@@ -1,26 +1,17 @@
|
|||||||
name: Backport
|
name: Backport merged pull request
|
||||||
on:
|
on:
|
||||||
pull_request_target:
|
pull_request_target:
|
||||||
types:
|
types: [closed]
|
||||||
- closed
|
permissions:
|
||||||
- labeled
|
contents: write # so it can comment
|
||||||
|
pull-requests: write # so it can create pull requests
|
||||||
jobs:
|
jobs:
|
||||||
backport:
|
backport:
|
||||||
name: Backport
|
name: Backport pull request
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# Only react to merged PRs for security reasons.
|
# Don't run on closed unmerged pull requests
|
||||||
# See https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target.
|
if: github.event.pull_request.merged
|
||||||
if: >
|
|
||||||
github.event.pull_request.merged
|
|
||||||
&& (
|
|
||||||
github.event.action == 'closed'
|
|
||||||
|| (
|
|
||||||
github.event.action == 'labeled'
|
|
||||||
&& contains(github.event.label.name, 'backport')
|
|
||||||
)
|
|
||||||
)
|
|
||||||
steps:
|
steps:
|
||||||
- uses: tibdex/backport@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
- name: Create backport pull requests
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
uses: korthout/backport-action@v1
|
||||||
|
|||||||
Reference in New Issue
Block a user