-
Notifications
You must be signed in to change notification settings - Fork 241
37 lines (29 loc) · 992 Bytes
/
generate_ghdb_wl.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
35
36
37
name: generate_ghdb_wl
on:
schedule:
- cron: '0 0 * * 0' #At 00:00 on Sunday
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
- name: Setup Python
uses: actions/[email protected]
- name: Install scraper_ghdb
run: python3 -m pip install -r scripts/ghdb_scraper/requirements.txt
- name: Run scraper_ghdb
run: python3 scripts/ghdb_scraper/ghdb_scraper.py -o "wordlists/ghdb.json"
- name: Create local changes
run: git add wordlists/ghdb.json
- name: Commit results to Github
run: |
git config --local user.email ""
git config --global user.name "ghdb"
git commit -m "Bot ghdb auto update" -a --allow-empty
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}