Skip to content

Commit 14a44ce

Browse files
committed
chore: testing
Signed-off-by: Niccolò Fei <[email protected]>
1 parent 0f65bc3 commit 14a44ce

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/bake.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ jobs:
3636
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
3737
id: filter
3838
with:
39-
base: ${{ (github.event_name == 'schedule') && 'main' || '' }}
4039
filters: |
4140
shared: &shared
4241
- 'docker-bake.hcl'
4342
- 'Makefile'
4443
- 'kind-config.yaml'
4544
- 'test/**'
45+
- '.github/workflows/bake*.yml'
4646
pgvector:
4747
- 'pgvector/**'
4848
- *shared
@@ -58,13 +58,17 @@ jobs:
5858
id: get-matrix
5959
env:
6060
# JSON array containing the extensions that have been changed
61-
EXTENSIONS_CHANGED: ${{ steps.filter.outputs.changes }}
61+
CHANGES: ${{ steps.filter.outputs.changes }}
6262
# Input Extension name
6363
INPUT_EXTENSION_NAME: ${{ github.event.inputs.extension_name }}
6464
run: |
6565
if [[ "${{ github.event_name }}" == 'workflow_dispatch' ]]; then
66-
EXTENSIONS_CHANGED="[\"$INPUT_EXTENSION_NAME\"]"
66+
CHANGES="[\"$INPUT_EXTENSION_NAME\"]"
6767
fi
68+
69+
# Filter away the shared filter
70+
EXTENSIONS_CHANGED=$(echo "$CHANGES" | jq -c 'map(select(. != "shared"))')
71+
6872
echo "{\"name\": $EXTENSIONS_CHANGED}" > matrix.json
6973
echo "matrix=$(cat matrix.json)" >> "$GITHUB_OUTPUT"
7074

0 commit comments

Comments
 (0)