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