Skip to content

Commit 9a5f53d

Browse files
committed
DRAFT: Run with default value on pull_request
1 parent c6b393d commit 9a5f53d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/build-overlay-deb.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
name: Build a Debian package using an overlay recipe
22

33
on:
4+
# temporarily allow on pull_request
5+
pull_request:
46
workflow_dispatch:
57
inputs:
68
config:
79
description: 'Path to the YAML configuration file'
810
required: true
911
type: string
1012

13+
# this provides a fallback on pull_request where we can't set the value
14+
env:
15+
CONFIG_PATH: ${{ inputs.config || 'overlay-debs/sample-hello-unmodified/hello_2.10-5.yaml' }}
16+
1117
jobs:
1218
build:
1319
strategy:
@@ -63,7 +69,7 @@ jobs:
6369
apt -y install --no-install-recommends \
6470
python3 devscripts patch python3-yaml debian-keyring
6571
sudo -u builder python3 scripts/build-deb.py \
66-
--config "${{ inputs.config }}"
72+
--config "${CONFIG_PATH}"
6773
6874
- name: Stage results for upload
6975
run: |

0 commit comments

Comments
 (0)