From 7f51ffe99ed57c26cf48757d2f06758839d70374 Mon Sep 17 00:00:00 2001 From: Paolo Pialorsi Date: Mon, 15 Jan 2024 12:34:33 +0100 Subject: [PATCH] Added the sample.json validation action --- .github/workflows/validate-sample.yml | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/.github/workflows/validate-sample.yml b/.github/workflows/validate-sample.yml index 09e3139..59a6f5e 100644 --- a/.github/workflows/validate-sample.yml +++ b/.github/workflows/validate-sample.yml @@ -18,21 +18,6 @@ jobs: # Find all sample.json files in the pull request files=$(git diff --name-only | grep 'sample.json$') echo "Found sample.json files: $files" - - # Process each file - for file in $files; do - echo "Processing file: $file" - response=$(curl -X POST -H "Content-Type: application/json" -d @$file https://m365-galleries.azurewebsites.net/Samples/validateSample) - echo "Response: $response" - - isValid=$(echo "$response" | jq -r '.isValid') - if [[ $isValid == "true" ]]; then - echo "Validation successful for $file" - else - echo "Validation failed for $file! Please fix the errors and try again." - exit 1 - fi - done id: fetch failure: needs: validate