diff --git a/.github/workflows/check-file-changes.yml b/.github/workflows/check-file-changes.yml index 1eb0c96df6..1aa249981f 100644 --- a/.github/workflows/check-file-changes.yml +++ b/.github/workflows/check-file-changes.yml @@ -17,17 +17,17 @@ jobs: env: ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }} run: | - IFS=', ' read -r -a changed_files_array <<< "$ALL_CHANGED_FILES" - echo "All changed files: $changed_files_array" - echo "All changed files length: ${#changed_files_array[@]}" - - if [ ${#changed_files_array[@]} -ne 1 ]; then - echo "Error: Array should contain exactly one file name." - exit 1 - fi - - file_name="${changed_files_array[0]}" - if [[ ! "$file_name" =~ ^app_chains.*\.json$ ]]; then - echo "Error: Only a '.json' file must be added in the app_chains folder." - exit 1 - fi + IFS=', ' read -r -a changed_files_array <<< "$ALL_CHANGED_FILES" + echo "All changed files: $changed_files_array" + echo "All changed files length: ${#changed_files_array[@]}" + + if [ ${#changed_files_array[@]} -ne 1 ]; then + echo "Error: Array should contain exactly one file name." + exit 1 + fi + + file_name="${changed_files_array[0]}" + if [[ ! "$file_name" =~ ^app_chains.*\.json$ ]]; then + echo "Error: Only a '.json' file must be added in the app_chains folder." + exit 1 + fi diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index c4b5bbfc6d..f9eaf8a223 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -14,6 +14,7 @@ jobs: - name: Run prettier run: |- npx prettier --check . + npx prettier --write . validate-entry: name: Validate entries diff --git a/app_chains/42a2e2f1-d685-4cf3-8a4d-c0560026a394.json b/app_chains/42a2e2f1-d685-4cf3-8a4d-c0560026a394.json new file mode 100644 index 0000000000..96c881f355 --- /dev/null +++ b/app_chains/42a2e2f1-d685-4cf3-8a4d-c0560026a394.json @@ -0,0 +1,8 @@ +{ + "name": "Cryptonaito", + "logo": "https://i.ibb.co/37ngjQ8/cryptonaito-4461454-1-Copy.png", + "rpc_url": "http://62.171.176.47:9944", + "explorer_url": "http://62.171.176.47:4000", + "metrics_endpoint": "http://62.171.176.47:9615/metrics", + "id": "42a2e2f1-d685-4cf3-8a4d-c0560026a394" +}