Skip to content

Commit 1b52e52

Browse files
committed
ci: allow manual builds
Signed-off-by: Niccolò Fei <[email protected]>
1 parent d19dc8a commit 1b52e52

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/bake.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@ name: Build, test and publish extensions
22

33
on:
44
push:
5+
workflow_dispatch:
6+
inputs:
7+
extension_name:
8+
description: "The PostgreSQL extension to build (directory name)"
9+
required: true
10+
type: choice
11+
options:
12+
- pgvector
13+
- postgis
514

615
defaults:
716
run:
@@ -41,6 +50,9 @@ jobs:
4150
EXTENSIONS_CHANGED: ${{ steps.filter.outputs.changes }}
4251
run: |
4352
echo "{\"name\": $EXTENSIONS_CHANGED}" > matrix.json
53+
if [[ ${{ github.event_name }} == 'workflow_dispatch' ]]; then
54+
EXTENSIONS_CHANGED="[${{ github.event.inputs.extension_name }}]"
55+
fi
4456
echo "matrix=$(cat matrix.json)" >> "$GITHUB_OUTPUT"
4557
4658
Bake:

0 commit comments

Comments
 (0)