From fd469e4c15b388f04d758169c447c063576aa4a5 Mon Sep 17 00:00:00 2001 From: Michel Roegl-Brunner Date: Tue, 18 Mar 2025 11:53:34 +0100 Subject: [PATCH] Workflow --- .github/workflows/move-to-main-repo.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/move-to-main-repo.yaml b/.github/workflows/move-to-main-repo.yaml index b0b4762..e20e80b 100644 --- a/.github/workflows/move-to-main-repo.yaml +++ b/.github/workflows/move-to-main-repo.yaml @@ -117,11 +117,11 @@ jobs: commit_message="Add script files for $script_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 "install/$script_name-install.sh" . 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 commit -m "${commit_message:-'Add new script'}" @@ -148,8 +148,8 @@ jobs: cp ../ct/$script_name.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 . if git diff --cached --exit-code; then echo "No changes detected, skipping commit."