Skip to content

Commit 5aa195a

Browse files
committed
[fix] Better backport workflow command matching and path #501
- Changed /backport trigger to exact match to prevent false triggers - Use local path for reusable workflow to enable PR-based testing Related to #501
1 parent e00a3ba commit 5aa195a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/backport.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ jobs:
2121
github.event.issue.pull_request &&
2222
github.event.issue.state == 'closed' &&
2323
contains(fromJSON('["MEMBER", "OWNER"]'), github.event.comment.author_association) &&
24-
startsWith(github.event.comment.body, '/backport')
24+
github.event.comment.body == '/backport'
2525
)
26-
uses: openwisp/openwisp-utils/.github/workflows/reusable-backport.yml@master
26+
uses: ./.github/workflows/reusable-backport.yml
2727
with:
2828
source_pr_number: ${{ github.event.pull_request.number || github.event.issue.number }}

0 commit comments

Comments
 (0)