diff --git a/.github/workflows/json_validator.yml b/.github/workflows/json_validator.yml deleted file mode 100644 index 5be52c77..00000000 --- a/.github/workflows/json_validator.yml +++ /dev/null @@ -1,48 +0,0 @@ -name: json-validator - -on: - push: - branches: [ main, 'sprint/**', 'release/**' ] - pull_request: - branches: [ main, 'sprint/**', 'release/**' ] - -jobs: - build: - runs-on: ubuntu-latest - name: Validate json files - steps: - - uses: actions/checkout@v3 - - - name: Get modified/added json files - id: json-files - uses: tj-actions/changed-files@v19 - with: - files: | - **/*.json - - - name: Validate the json files - id: validate-json-files - run : | - failed_jsons=() - FAILED=false - for file in ${{ steps.json-files.outputs.all_changed_files }}; do - echo "Validating the json file $file" - if ! python -m json.tool $file - then - FAILED=true - echo "Json schema error in $file" - failed_jsons+=("$file") - continue - fi - done - if [ $FAILED == true ] - then - echo "Error in parsing the JSON" - echo "Failed jsons are ${failed_jsons[@]}" - exit 1 - fi - - - - - diff --git a/.github/workflows/update-changelog-and-api-version.yml b/.github/workflows/update-changelog-and-api-version.yml index a60557c1..61fdb94c 100644 --- a/.github/workflows/update-changelog-and-api-version.yml +++ b/.github/workflows/update-changelog-and-api-version.yml @@ -21,7 +21,7 @@ jobs: - name: Get changed files using defaults id: changed-files - uses: tj-actions/changed-files@v19 + uses: rdkcentral/tj-actions_changed-files@v19 - name: Run step when a CHANGELOG.md didn't change uses: actions/github-script@v3