From d49674562492cd51c75f94af56df117097bacdd7 Mon Sep 17 00:00:00 2001 From: Rootul P Date: Fri, 10 Nov 2023 09:56:00 +0100 Subject: [PATCH] ci: no trailing commas in `*.txt` files (#523) * ci: trailing commas * chore: remove trailing commas * ci: only run on PRs * revert: accidental port modification --- .github/workflows/trailing-commas.yml | 25 +++++++++++ devnet-2/celestia-app/peers.txt | 18 ++++---- mamaki/bootstrap-peers.txt | 2 +- mamaki/peers.txt | 64 +++++++++++++-------------- mocha-3/peers.txt | 2 +- mocha/peers.txt | 12 ++--- mocha/seeds.txt | 2 +- 7 files changed, 75 insertions(+), 50 deletions(-) create mode 100644 .github/workflows/trailing-commas.yml diff --git a/.github/workflows/trailing-commas.yml b/.github/workflows/trailing-commas.yml new file mode 100644 index 00000000..6a1c710d --- /dev/null +++ b/.github/workflows/trailing-commas.yml @@ -0,0 +1,25 @@ +# trailing-commas verifies that *.txt files do not contain lines with trailing commas. +name: trailing-commas +on: pull_request +jobs: + check-trailing-commas: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Ensure no trailing commas in *.txt files + run: | + # Get list of .txt files + FILES=$(git ls-files | grep "\.txt$") + + # Check each file for trailing commas and fail if any are found + for FILE in $FILES; do + if grep -qE ",$" "$FILE"; then + echo "Trailing comma found in $FILE" + exit 1 + fi + done + + echo "No trailing commas found in .txt files." diff --git a/devnet-2/celestia-app/peers.txt b/devnet-2/celestia-app/peers.txt index d5ed36dc..c2e7e154 100644 --- a/devnet-2/celestia-app/peers.txt +++ b/devnet-2/celestia-app/peers.txt @@ -1,10 +1,10 @@ -0ddf1877a66384199c41c6bfaa4d5edd1bbee128@95.216.223.149:26666, -1d6a3c3d9ffc828b926f95592e15b1b59b5d8175@51.210.33.125:26656, -ceef453e27c50e1b5fa4c522c5310ebea6937b37@65.108.76.39:26656, -7ae1c8c0a14d34c241cfcbd63ea601716e0dbddc@3.83.69.129:26656, -1f6cfa7ccffb649eaca82d659a376d8859737b46@188.166.228.113:26656, -06818dc3a3ab60a4c38f14fc0ad1246d0e95e3bb@5.161.54.161:26656, -4dbee83453420c37eeb632cd6c02ee4c53c38570@65.108.61.136:26656, -5ed12ed092257a194c43f3fad2fea548d9f29fc8@168.119.229.69:26656, -54296dca10da2d6e992f3f21da41a655a739802a@209.145.60.201:26656, +0ddf1877a66384199c41c6bfaa4d5edd1bbee128@95.216.223.149:26666 +1d6a3c3d9ffc828b926f95592e15b1b59b5d8175@51.210.33.125:26656 +ceef453e27c50e1b5fa4c522c5310ebea6937b37@65.108.76.39:26656 +7ae1c8c0a14d34c241cfcbd63ea601716e0dbddc@3.83.69.129:26656 +1f6cfa7ccffb649eaca82d659a376d8859737b46@188.166.228.113:26656 +06818dc3a3ab60a4c38f14fc0ad1246d0e95e3bb@5.161.54.161:26656 +4dbee83453420c37eeb632cd6c02ee4c53c38570@65.108.61.136:26656 +5ed12ed092257a194c43f3fad2fea548d9f29fc8@168.119.229.69:26656 +54296dca10da2d6e992f3f21da41a655a739802a@209.145.60.201:26656 a4ae84f9f0e2397c886d9de22b9b90d98ede99a1@49.12.111.32:26656 diff --git a/mamaki/bootstrap-peers.txt b/mamaki/bootstrap-peers.txt index 6e5620d9..48ce3f4d 100644 --- a/mamaki/bootstrap-peers.txt +++ b/mamaki/bootstrap-peers.txt @@ -1,2 +1,2 @@ -a46bbdb81e66c950e3cdbe5ee748a2d6bdb185dd@161.97.168.77:26656, +a46bbdb81e66c950e3cdbe5ee748a2d6bdb185dd@161.97.168.77:26656 f0c58d904dec824605ac36114db28f1bf84f6ea3@144.76.112.238:26656 diff --git a/mamaki/peers.txt b/mamaki/peers.txt index 3ff4e19f..4c71f78c 100644 --- a/mamaki/peers.txt +++ b/mamaki/peers.txt @@ -1,32 +1,32 @@ -e4429e99609c8c009969b0eb73c973bff33712f9@141.94.73.39:43656, -09263a4168de6a2aaf7fef86669ddfe4e2d004f6@142.132.209.229:26656, -13d8abce0ff9565ed223c5e4b9906160816ee8fa@94.62.146.145:36656, -72b34325513863152269e781d9866d1ec4d6a93a@65.108.194.40:26676, -322542cec82814d8903de2259b1d4d97026bcb75@51.178.133.224:26666, -5273f0deefa5f9c2d0a3bbf70840bb44c65d835c@80.190.129.50:49656, -7145da826bbf64f06aa4ad296b850fd697a211cc@176.57.189.212:26656, -5a4c337189eed845f3ece17f88da0d94c7eb2f9c@209.126.84.147:26656, -ec072065bd4c6126a5833c97c8eb2d4382db85be@88.99.249.251:26656, -cd1524191300d6354d6a322ab0bca1d7c8ddfd01@95.216.223.149:26656, -2fd76fae32f587eceb266dce19053b20fce4e846@207.154.220.138:26656, -1d6a3c3d9ffc828b926f95592e15b1b59b5d8175@135.181.56.56:26656, -fe2025284ad9517ee6e8b027024cf4ae17e320c9@198.244.164.11:26656, -fcff172744c51684aaefc6fd3433eae275a2f31b@159.203.18.242:26656, -f7b68a491bae4b10dbab09bb3a875781a01274a5@65.108.199.79:20356, -6c076056fc80a813b26e24ba8d28fa374cd72777@149.102.153.197:26656, -180378bab87c9cecea544eb406fcd8fcd2cbc21b@168.119.122.78:26656, -88fa96d09a595a1208968727819367bd2fe8eabe@164.70.120.56:26656, -84133cfde6e5fcaf5915436d56b3eef1d1996d17@45.132.245.56:26656, -42b331adaa9ece4c455b92f0d26e3382e46d43f0@161.97.180.20:36656, -c8c0456a5174ab082591a9466a6e0cb15c915a65@194.233.85.193:26656, -6a62bf1f489a5231ddc320a2607ab2595558db75@154.12.240.49:26656, -d0b19e4d133441fd41b4d74ac8de2138313ad49e@195.201.41.137:26656, -bf199295d4c142ebf114232613d4796e6d81a8d0@159.69.110.238:26656, -a46bbdb81e66c950e3cdbe5ee748a2d6bdb185dd@161.97.168.77:26656, -831cd61b04ac95155f101723b851af53460d4d65@65.108.217.169:26656, -550ab50ad0df01408928a3479e643286a47b4fc9@46.4.213.197:26656, -43e9da043318a4ea0141259c17fcb06ecff816af@141.94.73.39:43656, -45d0154bea2e0bbffec343894072f5feab19d242@65.108.71.92:43656, -2e4084408b641a90c299a499c32874f0ab0f2956@65.108.44.149:22656, -de6ba05f3ed583a12c396c182e5126ed65a32514@154.53.44.239:26656, -d6fb487ff10d9878449beaa89007da15ec43057f@194.163.137.209:26656 \ No newline at end of file +e4429e99609c8c009969b0eb73c973bff33712f9@141.94.73.39:43656 +09263a4168de6a2aaf7fef86669ddfe4e2d004f6@142.132.209.229:26656 +13d8abce0ff9565ed223c5e4b9906160816ee8fa@94.62.146.145:36656 +72b34325513863152269e781d9866d1ec4d6a93a@65.108.194.40:26676 +322542cec82814d8903de2259b1d4d97026bcb75@51.178.133.224:26666 +5273f0deefa5f9c2d0a3bbf70840bb44c65d835c@80.190.129.50:49656 +7145da826bbf64f06aa4ad296b850fd697a211cc@176.57.189.212:26656 +5a4c337189eed845f3ece17f88da0d94c7eb2f9c@209.126.84.147:26656 +ec072065bd4c6126a5833c97c8eb2d4382db85be@88.99.249.251:26656 +cd1524191300d6354d6a322ab0bca1d7c8ddfd01@95.216.223.149:26656 +2fd76fae32f587eceb266dce19053b20fce4e846@207.154.220.138:26656 +1d6a3c3d9ffc828b926f95592e15b1b59b5d8175@135.181.56.56:26656 +fe2025284ad9517ee6e8b027024cf4ae17e320c9@198.244.164.11:26656 +fcff172744c51684aaefc6fd3433eae275a2f31b@159.203.18.242:26656 +f7b68a491bae4b10dbab09bb3a875781a01274a5@65.108.199.79:20356 +6c076056fc80a813b26e24ba8d28fa374cd72777@149.102.153.197:26656 +180378bab87c9cecea544eb406fcd8fcd2cbc21b@168.119.122.78:26656 +88fa96d09a595a1208968727819367bd2fe8eabe@164.70.120.56:26656 +84133cfde6e5fcaf5915436d56b3eef1d1996d17@45.132.245.56:26656 +42b331adaa9ece4c455b92f0d26e3382e46d43f0@161.97.180.20:36656 +c8c0456a5174ab082591a9466a6e0cb15c915a65@194.233.85.193:26656 +6a62bf1f489a5231ddc320a2607ab2595558db75@154.12.240.49:26656 +d0b19e4d133441fd41b4d74ac8de2138313ad49e@195.201.41.137:26656 +bf199295d4c142ebf114232613d4796e6d81a8d0@159.69.110.238:26656 +a46bbdb81e66c950e3cdbe5ee748a2d6bdb185dd@161.97.168.77:26656 +831cd61b04ac95155f101723b851af53460d4d65@65.108.217.169:26656 +550ab50ad0df01408928a3479e643286a47b4fc9@46.4.213.197:26656 +43e9da043318a4ea0141259c17fcb06ecff816af@141.94.73.39:43656 +45d0154bea2e0bbffec343894072f5feab19d242@65.108.71.92:43656 +2e4084408b641a90c299a499c32874f0ab0f2956@65.108.44.149:22656 +de6ba05f3ed583a12c396c182e5126ed65a32514@154.53.44.239:26656 +d6fb487ff10d9878449beaa89007da15ec43057f@194.163.137.209:26656 diff --git a/mocha-3/peers.txt b/mocha-3/peers.txt index 0b9a80e8..29b94aaf 100644 --- a/mocha-3/peers.txt +++ b/mocha-3/peers.txt @@ -1,2 +1,2 @@ -ec11f3be74010b78882de2cbd170d7ad4458d8ac@157.245.250.63:26656, +ec11f3be74010b78882de2cbd170d7ad4458d8ac@157.245.250.63:26656 daf2cecee2bd7f1b3bf94839f993f807c6b15fbf@celestia-testnet-peer.itrocket.net:11656 diff --git a/mocha/peers.txt b/mocha/peers.txt index 059e00a3..a3b0f823 100644 --- a/mocha/peers.txt +++ b/mocha/peers.txt @@ -1,7 +1,7 @@ -eaa763cde89fcf5a8fe44274a5ee3ce24bce2c5b@64.227.18.169:26656, -0d0f0e4a149b50a96207523a5408611dae2796b6@198.199.82.109:26656, -c2870ce12cfb08c4ff66c9ad7c49533d2bd8d412@178.170.47.171:26656, -1afcd97b0bf289700378e18b45dc1f927917bba0@65.109.92.79:11656, -eaa763cde89fcf5a8fe44274a5ee3ce24bce2c5b@64.227.18.169:26656, -0d0f0e4a149b50a96207523a5408611dae2796b6@198.199.82.109:26656, +eaa763cde89fcf5a8fe44274a5ee3ce24bce2c5b@64.227.18.169:26656 +0d0f0e4a149b50a96207523a5408611dae2796b6@198.199.82.109:26656 +c2870ce12cfb08c4ff66c9ad7c49533d2bd8d412@178.170.47.171:26656 +1afcd97b0bf289700378e18b45dc1f927917bba0@65.109.92.79:11656 +eaa763cde89fcf5a8fe44274a5ee3ce24bce2c5b@64.227.18.169:26656 +0d0f0e4a149b50a96207523a5408611dae2796b6@198.199.82.109:26656 c2870ce12cfb08c4ff66c9ad7c49533d2bd8d412@178.170.47.171:26656 diff --git a/mocha/seeds.txt b/mocha/seeds.txt index 09f952c1..96bcefc0 100644 --- a/mocha/seeds.txt +++ b/mocha/seeds.txt @@ -1,2 +1,2 @@ -8084e73b70dbe7fba3602be586de45a516012e6f@144.76.112.238:26656, +8084e73b70dbe7fba3602be586de45a516012e6f@144.76.112.238:26656 9aa8a73ea9364aa3cf7806d4dd25b6aed88d8152@celestia.seed.mzonder.com:11156