Skip to content

Commit cc6f133

Browse files
committed
fix: (likely) fix release action
1 parent f3078af commit cc6f133

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/prerelease_on_version_bump.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ jobs:
1717
- name: Detect single custom component directory
1818
id: detect_integration
1919
run: |
20-
DIR_COUNT=$(find custom_components -maxdepth 1 -type d | wc -l)
20+
DIR_COUNT=$(find custom_components/* -maxdepth 0 -type d | wc -l)
2121
if [ "$DIR_COUNT" -ne "1" ]; then
2222
echo "Error: There must be exactly one custom component directory." >&2
2323
exit 1
2424
fi
25-
DOMAIN=$(basename $(find custom_components -maxdepth 1 -type d))
25+
DOMAIN=$(basename $(find custom_components/* -maxdepth 0 -type d))
2626
echo "::set-output name=domain::$DOMAIN"
2727
2828
- name: Install JQ

0 commit comments

Comments
 (0)