mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Change backport action (#7046)
- Change to korthout/backport-action - More actively maintained
This commit is contained in:
parent
1c67a92958
commit
251029c62e
21
.github/workflows/backport.yml
vendored
21
.github/workflows/backport.yml
vendored
@ -18,25 +18,10 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
if: |
|
||||
github.event.pull_request.merged == true
|
||||
&& contains(github.event.pull_request.labels.*.name, 'backport')
|
||||
&& (
|
||||
(github.event.action == 'labeled' && github.event.label.name == 'backport')
|
||||
|| (github.event.action == 'closed')
|
||||
)
|
||||
steps:
|
||||
- name: Backport Action
|
||||
uses: sqren/backport-github-action@f54e19901f2a57f8b82360f2490d47ee82ec82c6 # pin@v9.2.2
|
||||
uses: korthout/backport-action@ef20d86abccbac3ee3a73cb2efbdc06344c390e5 # Pinned at v2.5.0
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
auto_backport_label_prefix: backport-to-
|
||||
add_original_reviewers: true
|
||||
|
||||
- name: Info log
|
||||
if: ${{ success() }}
|
||||
run: cat ~/.backport/backport.info.log
|
||||
|
||||
- name: Debug log
|
||||
if: ${{ failure() }}
|
||||
run: cat ~/.backport/backport.debug.log
|
||||
copy_labels_pattern: '*'
|
||||
label_pattern: 'backport-to-([^ ]+)$'
|
||||
|
@ -1,8 +0,0 @@
|
||||
{
|
||||
"repoOwner": "Oliver Walters",
|
||||
"repoName": "InvenTree",
|
||||
"targetBranchChoices": [],
|
||||
"branchLabelMapping": {
|
||||
"^backport-to-(.+)$": "$1"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user