Skip to content

Remove duplicates from tui/cool_tips.txt & add a CI that checks the file #1

Remove duplicates from tui/cool_tips.txt & add a CI that checks the file

Remove duplicates from tui/cool_tips.txt & add a CI that checks the file #1

Workflow file for this run

name: Check for duplicates in cool_tips.txt
on:
push:
paths:
- tui/cool_tips.txt
pull_request:
paths:
- tui/cool_tips.txt
merge_group:
workflow_dispatch:
jobs:
check-duplicates:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check for duplicates in cool_tips.txt
run: |
duplicates=$(grep -o '^[^:]*:' tui/cool_tips.txt | sort | uniq -d)
if [ -n "$duplicates" ]; then
echo "$duplicates"
exit 1
fi