-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from seokho-son/main
Add script to update tumblebug-submodule by tag
- Loading branch information
Showing
2 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
Submodule cb-tumblebug
updated
24 files
+2 −2 | .github/workflows/auto-merge.yml | |
+4 −3 | CODEOWNERS | |
+0 −2 | OWNERS | |
+13 −22 | README.md | |
+1 −1 | go.mod | |
+2 −2 | go.sum | |
+0 −0 | scripts/installDocker.sh | |
+1 −2 | scripts/runContainer.sh | |
+1 −1 | scripts/runMapUI.sh | |
+1 −1 | scripts/runSpider.sh | |
+76 −5 | src/api/rest/docs/docs.go | |
+76 −5 | src/api/rest/docs/swagger.json | |
+54 −5 | src/api/rest/docs/swagger.yaml | |
+7 −1 | src/api/rest/server/mcis/control.go | |
+32 −5 | src/api/rest/server/mcis/remoteCommand.go | |
+1 −0 | src/api/rest/server/server.go | |
+6 −0 | src/core/common/common.go | |
+13 −6 | src/core/mcis/benchmark.go | |
+140 −63 | src/core/mcis/control.go | |
+49 −70 | src/core/mcis/manageInfo.go | |
+18 −12 | src/core/mcis/monitoring.go | |
+5 −1 | src/core/mcis/network.go | |
+14 −10 | src/core/mcis/provisioning.go | |
+54 −6 | src/core/mcis/remoteCommand.go |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
|
||
cd cb-tumblebug || { echo "Error: Failed to enter cb-tumblebug directory."; exit 1; } | ||
|
||
# Fetch all tags from the remote repository | ||
git fetch --tags | ||
|
||
# Sort and display the list of available tags and get user input | ||
echo "[Available tags in CB-Tumblebug]" | ||
git tag -l | sort -V | ||
echo "[Select a tag to checkout]" | ||
read -r TARGET_TAG | ||
|
||
# Checkout to the tag specified by the user | ||
git checkout tags/$TARGET_TAG | ||
if [ $? -ne 0 ]; then | ||
echo "Error: Failed to checkout tag $TARGET_TAG" | ||
exit 1 | ||
fi | ||
|
||
# Navigate back to the parent directory | ||
cd .. | ||
|
||
# Stage the changes | ||
git add -u | ||
|
||
# Create a commit | ||
git commit -m "Update Submodule CB-Tumblebug $TARGET_TAG" | ||
|
||
echo "CB-Tumblebug successfully updated to $TARGET_TAG" | ||
echo "ToDo: git log" | ||
echo "ToDo: git push origin" | ||
|