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

ci: no trailing commas in *.txt files #523

Merged
merged 4 commits into from
Nov 10, 2023
Merged
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
25 changes: 25 additions & 0 deletions .github/workflows/trailing-commas.yml
Original file line number Diff line number Diff line change
@@ -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."
18 changes: 9 additions & 9 deletions devnet-2/celestia-app/peers.txt
2 changes: 1 addition & 1 deletion mamaki/bootstrap-peers.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[email protected]:26656,
[email protected]:26656
[email protected]:26656
64 changes: 32 additions & 32 deletions mamaki/peers.txt
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
[email protected]:43656,
[email protected]:26656,
[email protected]:36656,
[email protected]:26676,
[email protected]:26666,
[email protected]:49656,
[email protected]:26656,
[email protected]:26656,
[email protected]:26656,
[email protected]:26656,
[email protected]:26656,
[email protected]:26656,
[email protected]:26656,
[email protected]:26656,
[email protected]:20356,
[email protected]:26656,
[email protected]:26656,
[email protected]:26656,
[email protected]:26656,
[email protected]:36656,
[email protected]:26656,
[email protected]:26656,
[email protected]:26656,
[email protected]:26656,
[email protected]:26656,
[email protected]:26656,
[email protected]:26656,
[email protected]:43656,
[email protected]:43656,
[email protected]:22656,
[email protected]:26656,
[email protected]:26656
[email protected]:43656
[email protected]:26656
[email protected]:36656
[email protected]:26676
[email protected]:26666
[email protected]:49656
[email protected]:26656
[email protected]:26656
[email protected]:26656
[email protected]:26656
[email protected]:26656
[email protected]:26656
[email protected]:26656
[email protected]:26656
[email protected]:20356
[email protected]:26656
[email protected]:26656
[email protected]:26656
[email protected]:26656
[email protected]:36656
[email protected]:26656
[email protected]:26656
[email protected]:26656
[email protected]:26656
[email protected]:26656
[email protected]:26656
[email protected]:26656
[email protected]:43656
[email protected]:43656
[email protected]:22656
[email protected]:26656
[email protected]:26656
2 changes: 1 addition & 1 deletion mocha-3/peers.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[email protected]:26656,
[email protected]:26656
daf2cecee2bd7f1b3bf94839f993f807c6b15fbf@celestia-testnet-peer.itrocket.net:11656
12 changes: 6 additions & 6 deletions mocha/peers.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[email protected]:26656,
[email protected]:26656,
[email protected]:26656,
[email protected]:11656,
[email protected]:26656,
[email protected]:26656,
[email protected]:26656
[email protected]:26656
[email protected]:26656
[email protected]:11656
[email protected]:26656
[email protected]:26656
[email protected]:26656
2 changes: 1 addition & 1 deletion mocha/seeds.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[email protected]:26656,
[email protected]:26656
9aa8a73ea9364aa3cf7806d4dd25b6aed88d8152@celestia.seed.mzonder.com:11156