-
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (35 loc) · 965 Bytes
/
app.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: Python application
on:
workflow_dispatch:
schedule:
- cron: "0 4 5 * *"
permissions:
contents: write
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install
run: |
sudo python -m pip install --upgrade pip
sudo pip install argparse scapy wget pathlib
if [ -f requirements.txt ]; then sudo pip install -r requirements.txt; fi
- name: Run
run: |
sudo python dns-spoofable.py -o output.txt
- name: Push
run: |
git version > /dev/null
sleep 1
git config --global user.name "HelloTools-bot"
git config --global user.email "3356136957@qq.com"
git add output.txt
git commit --allow-empty -m ":star: update: `date '+%Y-%m-%d %H:%M:%S'` [skip ci]"
sleep 1
sudo git push
echo Success!