Skip to content

Commit f42778c

Browse files
authored
Fix check for lockfiles depth (#52)
1 parent 7b43715 commit f42778c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,17 @@ runs:
3535
VERSION="latest"
3636
fi
3737
echo "PACKAGE_MANAGER=$PACKAGE_MANAGER" >> $GITHUB_ENV
38-
elif [ $(find "." -name "pnpm-lock.yaml") ]; then
38+
elif [ $(find "." -maxdepth 1 -name "pnpm-lock.yaml") ]; then
3939
echo "PACKAGE_MANAGER=pnpm" >> $GITHUB_ENV
4040
echo "LOCKFILE=pnpm-lock.yaml" >> $GITHUB_ENV
41-
elif [ $(find "." -name "yarn.lock") ]; then
41+
elif [ $(find "." -maxdepth 1 -name "yarn.lock") ]; then
4242
echo "PACKAGE_MANAGER=yarn" >> $GITHUB_ENV
4343
echo "LOCKFILE=yarn.lock" >> $GITHUB_ENV
44-
elif [ $(find "." -name "package-lock.json") ]; then
44+
elif [ $(find "." -maxdepth 1 -name "package-lock.json") ]; then
4545
VERSION="latest"
4646
echo "PACKAGE_MANAGER=npm" >> $GITHUB_ENV
4747
echo "LOCKFILE=package-lock.json" >> $GITHUB_ENV
48-
elif [ $(find "." -name "bun.lockb") ]; then
48+
elif [ $(find "." -maxdepth 1 -name "bun.lockb") ]; then
4949
VERSION="latest"
5050
echo "PACKAGE_MANAGER=bun" >> $GITHUB_ENV
5151
echo "LOCKFILE=bun.lockb" >> $GITHUB_ENV

0 commit comments

Comments
 (0)