Skip to content

Commit

Permalink
fix: Fix widget list path
Browse files Browse the repository at this point in the history
  • Loading branch information
richardgazdik committed Jan 8, 2025
1 parent 087b6ca commit d91ec0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ jobs:
id: widget-list
run: |
WIDGET_LIST="[]"
if [ -d "current-repo/widgets" ]; then
if [ -d "current-repo/examples/widgets" ]; then
# Find directories in widgets that contain .c files
WIDGETS=$(find current-repo/widgets -type f -name "*.c" -exec dirname {} \; | sort -u | xargs -n1 basename)
WIDGETS=$(find current-repo/examples/widgets -type f -name "*.c" -exec dirname {} \; | sort -u | xargs -n1 basename)
if [ ! -z "$WIDGETS" ]; then
# Convert to array of '_widgetname_register'
WIDGET_LIST="[$(echo "$WIDGETS" | tr ' ' '\n' | sed "s/.*/'_&_register'/" | tr '\n' ',' | sed 's/,$//' )]"
Expand Down

0 comments on commit d91ec0c

Please sign in to comment.