Update backport github action due to lable change

Signed-off-by: David Ko <dko@suse.com>
This commit is contained in:
David Ko 2022-12-04 12:25:58 +08:00
parent 0e56cd1e9a
commit 207e74ecd4
3 changed files with 4 additions and 4 deletions

View File

@ -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: ''

View File

@ -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

View File

@ -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