Skip to content

Commit becb779

Browse files
committed
.github/workflows: Add generate-test-packages trigger.
1 parent 03f76f2 commit becb779

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,28 @@ on:
88
branches:
99
- master
1010
workflow_dispatch:
11+
issue_comment:
12+
types: [created]
1113

1214
jobs:
1315
build:
16+
if: github.event_name != 'issue_comment'
1417
uses: linuxmint/github-actions/.github/workflows/do-builds.yml@master
1518
with:
1619
commit_id: master
1720
############################## Comma separated list - like 'linuxmint/xapp, linuxmint/cinnamon-desktop'
1821
dependencies: linuxmint/xapp
1922
##############################
2023

24+
# Generate test packages when /generate-test-packages is commented on a PR
25+
generate-test-packages:
26+
if: github.event_name == 'issue_comment' && github.event.issue.pull_request
27+
uses: linuxmint/github-actions/.github/workflows/generate-test-packages.yml@master
28+
secrets: inherit
29+
with:
30+
comment_body: ${{ github.event.comment.body }}
31+
comment_user: ${{ github.event.comment.user.login }}
32+
comment_id: ${{ github.event.comment.id }}
33+
issue_number: ${{ github.event.issue.number }}
34+
############################## Comma separated list - like 'linuxmint/xapp, linuxmint/cinnamon-desktop'
35+
dependencies: linuxmint/xapp

0 commit comments

Comments
 (0)