mirror of
https://github.com/labring/sealos.git
synced 2026-08-31 02:06:00 +08:00
1d7649e4ed
* feat(main): fix merge for cri and socket Signed-off-by: cuisongliu <cuisongliu@qq.com> * feat(main): fix merge for cri and socket Signed-off-by: cuisongliu <cuisongliu@qq.com> * feat(main): fix merge for cri and socket Signed-off-by: cuisongliu <cuisongliu@qq.com> * feat(main): fix merge for cri and socket Signed-off-by: cuisongliu <cuisongliu@qq.com> --------- Signed-off-by: cuisongliu <cuisongliu@qq.com>
15 lines
536 B
Bash
Executable File
15 lines
536 B
Bash
Executable File
#!/bin/bash
|
|
# Recursively finds all directories with a go.mod file and creates
|
|
# a GitHub Actions JSON output option. This is used by the linter action.
|
|
set -eu
|
|
FIND_VAR=${1:-.}
|
|
|
|
echo "Resolving modules in $(pwd)"
|
|
|
|
PATHS=$(find $FIND_VAR -type f -name go.mod -printf '{"workdir":"%h"},')
|
|
if [[ $FIND_VAR == "." ]]; then
|
|
PATHS=$(find $FIND_VAR ! -path './controllers/*' ! -path './webhooks/*' ! -path './service/*' -type f -name go.mod -printf '{"workdir":"%h"},')
|
|
fi
|
|
set -ex
|
|
echo matrix="{\"include\":[${PATHS%?}]}" >> $GITHUB_OUTPUT
|