Skip to content

Commit 18272f7

Browse files
committed
.github/workflows: Add generate-test-packages trigger.
1 parent d51681b commit 18272f7

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
@@ -14,13 +14,28 @@ on:
1414
description: 'Start an SSH server on failure.'
1515
required: false
1616
default: false
17+
issue_comment:
18+
types: [created]
1719

1820
jobs:
1921
build:
22+
if: github.event_name != 'issue_comment'
2023
uses: linuxmint/github-actions/.github/workflows/do-builds.yml@master
2124
with:
2225
commit_id: master
2326
############################## Comma separated list - like 'linuxmint/xapp, linuxmint/cinnamon-desktop'
2427
dependencies:
2528
##############################
2629

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

0 commit comments

Comments
 (0)