-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: no trailing commas in
*.txt
files (#523)
* ci: trailing commas * chore: remove trailing commas * ci: only run on PRs * revert: accidental port modification
- Loading branch information
Showing
7 changed files
with
75 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
[email protected]:26666, | ||
[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]:26666 | ||
[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]:26656 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
[email protected]:26656, | ||
[email protected]:26656 | ||
[email protected]:26656 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |