init
This commit is contained in:
parent
9628ebdc6c
commit
ada221020b
@ -78,6 +78,7 @@ spec:
|
||||
for TARGET in "$@"; do
|
||||
SRC=$(echo "$SOURCES" | cut -d' ' -f1)
|
||||
SOURCES=$(echo "$SOURCES" | cut -s -d' ' -f2-)
|
||||
TARGET_PATH="/workspace/base/$(params.context)/source/$(params.workspaceName)/${TARGET}""
|
||||
|
||||
ls -al $SRC/src
|
||||
|
||||
@ -89,11 +90,11 @@ spec:
|
||||
fi
|
||||
cd -
|
||||
|
||||
echo "Importing: $SRC → $TARGET"
|
||||
npx nx import --sourceDirectory="$SRC" --destinationDirectory="$TARGET" --interactive=false --ref=main
|
||||
echo "Importing: $SRC → $TARGET_PATH"
|
||||
npx nx import --sourceDirectory="$SRC" --destinationDirectory="$TARGET_PATH" --interactive=false --ref=main
|
||||
echo "Updating version to $(params.version)"
|
||||
sed -i.bak "s/^version = .*/version = \"$(params.version)\"/" "$TARGET/Cargo.toml"
|
||||
rm -f "$TARGET/Cargo.toml.bak"
|
||||
sed -i.bak "s/^version = .*/version = \"$(params.version)\"/" "$TARGET_PATH/Cargo.toml"
|
||||
rm -f "$TARGET_PATH/Cargo.toml.bak"
|
||||
|
||||
# destination(monorepo) 변경사항 커밋 또는 리셋
|
||||
git add .
|
||||
|
Loading…
x
Reference in New Issue
Block a user