Skip to content

Commit 78ff0d1

Browse files
committed
.github/workflows: Add generate-test-packages trigger.
1 parent ca90adf commit 78ff0d1

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/build.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,34 @@ on:
88
branches:
99
- master
1010
workflow_dispatch:
11+
inputs:
12+
debug_enabled:
13+
type: boolean
14+
description: 'Start an SSH server on failure.'
15+
required: false
16+
default: false
17+
issue_comment:
18+
types: [created]
1119

1220
jobs:
1321
build:
22+
if: github.event_name != 'issue_comment'
1423
uses: linuxmint/github-actions/.github/workflows/do-builds.yml@master
1524
with:
1625
commit_id: master
1726
############################## Comma separated list - like 'linuxmint/xapp, linuxmint/cinnamon-desktop'
1827
dependencies: linuxmint/xapp
1928
##############################
2029

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: linuxmint/xapp

0 commit comments

Comments
 (0)