Skip to content

Commit

Permalink
Update backport github action due to lable change
Browse files Browse the repository at this point in the history
Signed-off-by: David Ko <dko@suse.com>
  • Loading branch information
innobead committed Dec 4, 2022
1 parent 0e56cd1 commit 207e74e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/refactor.md
Original file line number Diff line number Diff line change
@@ -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: ''

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/close-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/create-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 207e74e

Please sign in to comment.