Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cryptonaito #2701

Closed
wants to merge 12 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions .github/workflows/check-file-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
- name: Run prettier
run: |-
npx prettier --check .
npx prettier --write .

validate-entry:
name: Validate entries
Expand Down
8 changes: 8 additions & 0 deletions app_chains/42a2e2f1-d685-4cf3-8a4d-c0560026a394.json
Original file line number Diff line number Diff line change
@@ -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"
}