forked from danielmiessler/SecLists
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (28 loc) · 1.03 KB
/
remote-wordlists-updater.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Wordlist Updater - Remote wordlists updater
on:
schedule:
- cron: 0 * * * *
workflow_dispatch:
jobs:
update-files:
permissions:
contents: write
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 "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -m "[Github Action] Automated trickest wordlists update."
git push
fi