From 27f39963ec0f5b06c51e5698960d2fcc54726461 Mon Sep 17 00:00:00 2001 From: Michel Roegl-Brunner Date: Thu, 12 Mar 2026 15:05:49 +0100 Subject: [PATCH] Change workflow to no longer include jsons --- .github/workflows/move-to-main-repo.yaml | 40 ------------------------ 1 file changed, 40 deletions(-) diff --git a/.github/workflows/move-to-main-repo.yaml b/.github/workflows/move-to-main-repo.yaml index f07b98f7..b101fa28 100644 --- a/.github/workflows/move-to-main-repo.yaml +++ b/.github/workflows/move-to-main-repo.yaml @@ -100,26 +100,6 @@ jobs: files_found="false" missing_files+="install/${script_name}-install.sh " fi - # JSON check with alpine fallback - json_file="json/${script_name}.json" - if [[ ! -f "$json_file" ]]; then - if [[ "$script_name" == alpine-* ]]; then - stripped_name="${script_name#alpine-}" - alt_json="json/${stripped_name}.json" - if [[ -f "$alt_json" ]]; then - echo "Using alpine fallback JSON: $alt_json" - echo "json_fallback=$alt_json" >> $GITHUB_OUTPUT - else - echo "json file not found: $json_file" - files_found="false" - missing_files+="$json_file " - fi - else - echo "json file not found: $json_file" - files_found="false" - missing_files+="$json_file " - fi - fi ;; vm) if [[ ! -f "vm/${script_name}.sh" ]]; then @@ -127,11 +107,6 @@ jobs: files_found="false" missing_files+="vm/${script_name}.sh " fi - # JSON is optional for VMs but check anyway - json_file="json/${script_name}.json" - if [[ ! -f "$json_file" ]]; then - echo "json file not found (optional): $json_file" - fi ;; addon) if [[ ! -f "tools/addon/${script_name}.sh" ]]; then @@ -139,11 +114,6 @@ jobs: files_found="false" missing_files+="tools/addon/${script_name}.sh " fi - # JSON is optional for addons - json_file="json/${script_name}.json" - if [[ ! -f "$json_file" ]]; then - echo "json file not found (optional): $json_file" - fi ;; pve) if [[ ! -f "tools/pve/${script_name}.sh" ]]; then @@ -190,7 +160,6 @@ jobs: run: | script_name="${{ steps.list_issues.outputs.script_name }}" script_type="${{ steps.list_issues.outputs.script_type }}" - json_fallback="${{ steps.check_files.outputs.json_fallback }}" git clone https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/community-scripts/ProxmoxVE.git ProxmoxVE cd ProxmoxVE @@ -227,13 +196,6 @@ jobs: cp ../ct/headers/${script_name} ct/headers/ 2>/dev/null || true cp ../install/${script_name}-install.sh install/ - # Handle JSON with alpine fallback - if [[ -n "$json_fallback" ]]; then - cp ../${json_fallback} frontend/public/json/ || true - else - cp ../json/${script_name}.json frontend/public/json/ 2>/dev/null || true - fi - # Update URLs in ct script sed -i "s|https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func|https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func|" ct/${script_name}.sh sed -i "s|https://git.community-scripts.org/community-scripts/ProxmoxVED/raw/branch/main/misc/build.func|https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func|" ct/${script_name}.sh @@ -242,7 +204,6 @@ jobs: ;; vm) cp ../vm/${script_name}.sh vm/ - cp ../json/${script_name}.json frontend/public/json/ 2>/dev/null || true # Update URLs in vm script sed -i "s|https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func|https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func|" vm/${script_name}.sh @@ -251,7 +212,6 @@ jobs: addon) mkdir -p tools/addon cp ../tools/addon/${script_name}.sh tools/addon/ - cp ../json/${script_name}.json frontend/public/json/ 2>/dev/null || true # Update URLs in addon script sed -i "s|community-scripts/ProxmoxVED|community-scripts/ProxmoxVE|g" tools/addon/${script_name}.sh