mirror of
https://github.com/danielmiessler/SecLists.git
synced 2025-06-10 10:13:43 +00:00
33 lines
975 B
YAML
33 lines
975 B
YAML
name: Wordlist Updater - Remote wordlists updater
|
|
|
|
on:
|
|
schedule:
|
|
- cron: 0 * * * *
|
|
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
update-files:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Update lists
|
|
run: ./.bin/wordlist-updaters/updater.py
|
|
|
|
- name: Commit files if changed
|
|
run: |
|
|
git add -N .
|
|
|
|
if [ -z "$(git ls-files --modified)" ]; then
|
|
echo "[+] No files were changed"
|
|
else
|
|
echo "[+] Files were changed! Pushing changed..."
|
|
git add --renormalize -A && git add -A
|
|
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
|
|
git config --local user.email "example@github.com"
|
|
git config --local user.name "GitHub Action"
|
|
git commit -m "[Github Action] Automated trickest wordlists update."
|
|
git push
|
|
fi
|