Skip to content

Commit 53fb90d

Browse files
committed
.github/workflows: Add generate-test-packages trigger.
1 parent 445fde2 commit 53fb90d

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,12 @@ 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
@@ -19,3 +22,18 @@ jobs:
1922
linuxmint/mintcommon,
2023
linuxmint/xapp
2124
##############################
25+
26+
# Generate test packages when /generate-test-packages is commented on a PR
27+
generate-test-packages:
28+
if: github.event_name == 'issue_comment' && github.event.issue.pull_request
29+
uses: linuxmint/github-actions/.github/workflows/generate-test-packages.yml@master
30+
secrets: inherit
31+
with:
32+
comment_body: ${{ github.event.comment.body }}
33+
comment_user: ${{ github.event.comment.user.login }}
34+
comment_id: ${{ github.event.comment.id }}
35+
issue_number: ${{ github.event.issue.number }}
36+
############################## Comma separated list - like 'linuxmint/xapp, linuxmint/cinnamon-desktop'
37+
dependencies: >
38+
linuxmint/mintcommon,
39+
linuxmint/xapp

0 commit comments

Comments
 (0)