generate_ghdb_wl #191
This file contains 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: 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 }} |