Update backport github action due to lable change
Signed-off-by: David Ko <dko@suse.com>
This commit is contained in:
parent
0e56cd1e9a
commit
207e74ecd4
2
.github/ISSUE_TEMPLATE/refactor.md
vendored
2
.github/ISSUE_TEMPLATE/refactor.md
vendored
@ -1,7 +1,7 @@
|
||||
---
|
||||
name: Refactoring request
|
||||
about: Suggest a refactoring request of an existing feature or design
|
||||
title: "[REFACTORING] "
|
||||
title: "[REFACTOR] "
|
||||
labels: kind/refactoring
|
||||
assignees: ''
|
||||
|
||||
|
2
.github/workflows/close-issue.yml
vendored
2
.github/workflows/close-issue.yml
vendored
@ -5,7 +5,7 @@ on:
|
||||
jobs:
|
||||
backport:
|
||||
runs-on: ubuntu-latest
|
||||
if: contains(github.event.label.name, 'backport-needed')
|
||||
if: contains(github.event.label.name, 'backport/')
|
||||
steps:
|
||||
- name: Get Backport Version
|
||||
uses: xom9ikk/split@v1
|
||||
|
4
.github/workflows/create-issue.yml
vendored
4
.github/workflows/create-issue.yml
vendored
@ -5,7 +5,7 @@ on:
|
||||
jobs:
|
||||
backport:
|
||||
runs-on: ubuntu-latest
|
||||
if: contains(github.event.label.name, 'backport-needed')
|
||||
if: contains(github.event.label.name, 'backport/')
|
||||
steps:
|
||||
- name: Get Backport Version
|
||||
uses: xom9ikk/split@v1
|
||||
@ -37,7 +37,7 @@ jobs:
|
||||
RAW_LABELS="${{ join(github.event.issue.labels.*.name, ' ') }}"
|
||||
RAW_LABELS="${RAW_LABELS} kind/backport"
|
||||
echo "RAW LABELS: $RAW_LABELS"
|
||||
LABELS=$(echo "$RAW_LABELS" | sed -r 's/\s*backport-needed\S+//g' | sed -r 's/\s*require\/automation-e2e//g' | xargs | sed 's/ /, /g')
|
||||
LABELS=$(echo "$RAW_LABELS" | sed -r 's/\s*backport\S+//g' | sed -r 's/\s*require\/automation-e2e//g' | xargs | sed 's/ /, /g')
|
||||
echo "LABELS: $LABELS"
|
||||
echo "::set-output name=labels::$LABELS"
|
||||
- name: Create Backport Issue
|
||||
|
Loading…
Reference in New Issue
Block a user