Workflow
This commit is contained in:
parent
04d90993b2
commit
fd469e4c15
8
.github/workflows/move-to-main-repo.yaml
vendored
8
.github/workflows/move-to-main-repo.yaml
vendored
@ -117,11 +117,11 @@ jobs:
|
|||||||
commit_message="Add script files for $script_name"
|
commit_message="Add script files for $script_name"
|
||||||
|
|
||||||
git checkout -b "$branch_name"
|
git checkout -b "$branch_name"
|
||||||
|
sed -i 's|source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func)|source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)|' ct/$script_name.sh
|
||||||
cp "ct/$script_name.sh" .
|
cp "ct/$script_name.sh" .
|
||||||
cp "install/$script_name-install.sh" .
|
cp "install/$script_name-install.sh" .
|
||||||
cp "frontend/public/json/$script_name.json" .
|
cp "frontend/public/json/$script_name.json" .
|
||||||
sed -i 's|source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func)|source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)|' ct/$script_name.sh
|
|
||||||
git add .
|
git add .
|
||||||
git commit -m "${commit_message:-'Add new script'}"
|
git commit -m "${commit_message:-'Add new script'}"
|
||||||
|
|
||||||
@ -148,8 +148,8 @@ jobs:
|
|||||||
|
|
||||||
cp ../ct/$script_name.sh .
|
cp ../ct/$script_name.sh .
|
||||||
cp ../install/$script_name-install.sh .
|
cp ../install/$script_name-install.sh .
|
||||||
cp ../json/$script_name.json .
|
cp ../frontend/public/json/$script_name.json .
|
||||||
|
sed -i 's|source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func)|source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)|' ct/$script_name.sh
|
||||||
git add .
|
git add .
|
||||||
if git diff --cached --exit-code; then
|
if git diff --cached --exit-code; then
|
||||||
echo "No changes detected, skipping commit."
|
echo "No changes detected, skipping commit."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user