Skip to content

Commit 458de98

Browse files
committed
.github/workflows: Add generate-test-packages trigger.
1 parent ec727b7 commit 458de98

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,12 @@ 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
@@ -26,3 +29,15 @@ jobs:
2629
codespell_ignore_words_list: nd
2730
codespell_ignore_files_list:
2831

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

0 commit comments

Comments
 (0)