Update suspicious_tlds.txt #448
Workflow file for this run
This file contains hidden or 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
| name: Ensure lists are sorted | |
| on: | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.head_ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| tests: | |
| name: Ensure Sorted Order | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| issues: read | |
| pull-requests: read | |
| checks: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 | |
| with: | |
| python-version: '3.10' | |
| - name: Get changed txt files | |
| id: changed_files | |
| env: | |
| BASE_REF: ${{ github.event.pull_request.base.sha }} | |
| run: | | |
| CHANGED_TXT=$(git diff --name-only "$BASE_REF"...HEAD -- '*.txt' | tr '\n' ' ') | |
| echo "files=$CHANGED_TXT" >> "$GITHUB_OUTPUT" | |
| if [ -z "$CHANGED_TXT" ]; then | |
| echo "No .txt files changed in this PR" | |
| else | |
| echo "Changed .txt files: $CHANGED_TXT" | |
| fi | |
| - name: Check file sort order | |
| if: steps.changed_files.outputs.files != '' | |
| run: | | |
| python ./scripts/sorter.py --check ${{ steps.changed_files.outputs.files }} |