Skip to content

Commit f2922e9

Browse files
committed
use valid categories
1 parent 17b0c6b commit f2922e9

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

.github/workflows/build-on-change.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,15 @@ jobs:
5555
exit 1
5656
fi
5757
else
58-
# Detect changes from git diff
58+
# Detect changes from git diff or find all recipes
5959
if [ "${{ github.event_name }}" == "push" ]; then
6060
CHANGED_FILES=$(git diff --name-only HEAD~1 HEAD -- 'binaries/**/*.yaml' 'packages/**/*.yaml' 2>/dev/null || true)
6161
elif [ "${{ github.event_name }}" == "pull_request" ]; then
6262
CHANGED_FILES=$(git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }} -- 'binaries/**/*.yaml' 'packages/**/*.yaml' 2>/dev/null || true)
63+
elif [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
64+
# No specific recipe, build all recipes
65+
echo "::notice::No recipe specified, building all recipes"
66+
CHANGED_FILES=$(find binaries packages -name '*.yaml' -type f 2>/dev/null || true)
6367
else
6468
CHANGED_FILES=""
6569
fi

binaries/hello/static.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ pkg: hello
55
pkg_id: test.hello.static
66
pkg_type: static
77
category:
8-
- utility
8+
- "ConsoleOnly"
9+
- "Utility"
910
description: Simple hello world static binary for testing bincache
1011
homepage:
1112
- https://github.com/pkgforge/sbuilder

binaries/jq/static.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ pkg: jq
55
pkg_id: github.com.jqlang.jq
66
pkg_type: static
77
category:
8-
- utility
8+
- "ConsoleOnly"
9+
- "Utility"
910
description: Command-line JSON processor
1011
homepage:
1112
- https://jqlang.github.io/jq/

packages/hello-appimage/appimage.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ pkg: hello-appimage
55
pkg_id: test.hello.appimage
66
pkg_type: appimage
77
category:
8-
- utility
8+
- "ConsoleOnly"
9+
- "Utility"
910
description: Simple hello world AppImage for testing pkgcache
1011
homepage:
1112
- https://github.com/pkgforge/sbuilder

0 commit comments

Comments
 (0)