Skip to content

Commit

Permalink
Merge pull request Phishing-Database#354 from mitchellkrogza/dev-auto…
Browse files Browse the repository at this point in the history
…sort-lists

Dev autosort lists script
  • Loading branch information
spirillen authored Jun 24, 2024
2 parents 44871aa + 7c8795a commit 3fad331
Show file tree
Hide file tree
Showing 8 changed files with 419 additions and 355 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Sort sources hierarchical

on:
pull_request:
push:
branches:
- master
- main
- dev-autosort-lists

jobs:
sort:
runs-on: ubuntu-latest

permissions:
contents: write

steps:
- name: Checkout the repo
uses: actions/checkout@main

- name: Setup Python 3.11
uses: actions/setup-python@v5
with:
python-version: 3.11

- name: Install requirements
run: |
pip install --no-cache-dir -r requirements.txt
- name: 'Sort the lists hierarchical'
run: |
bash "${{ github.workspace }}/tools/hierarchical_sort.sh"
- name: Git Status
run: git status

- name: Commit all changed files back to the repository
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Hierarchical sorted the lists"
Loading

0 comments on commit 3fad331

Please sign in to comment.