-
Notifications
You must be signed in to change notification settings - Fork 202
38 lines (31 loc) · 1.02 KB
/
main.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
38
name: Daily Update ARL Tools
on:
push:
branches:
- main
schedule:
- cron: '0 12 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Update Nuclei
run: cd tools && pip install requests && python nuclei_download.py
- name: Update GeoLite2-ASN
run: cd tools && wget https://github.com/P3TERX/GeoLite.mmdb/raw/download/GeoLite2-ASN.mmdb -O GeoLite2-ASN.mmdb
- name: Update GeoLite2-City
run: cd tools && wget https://github.com/P3TERX/GeoLite.mmdb/raw/download/GeoLite2-City.mmdb -O GeoLite2-City.mmdb
- name: Commit and Push changes
run: |
echo $(date +'%Y%m%d') > date.txt
git add .
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git commit -am "$(date +'%Y%m%d')"
git push -v --progress