Skip to content

Commit

Permalink
ci: no trailing commas in *.txt files (#523)
Browse files Browse the repository at this point in the history
* ci: trailing commas

* chore: remove trailing commas

* ci: only run on PRs

* revert: accidental port modification
  • Loading branch information
rootulp authored Nov 10, 2023
1 parent 6392cbd commit d496745
Show file tree
Hide file tree
Showing 7 changed files with 75 additions and 50 deletions.
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

0 comments on commit d496745

Please sign in to comment.