forked from phishinqi/TrackersList
-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (36 loc) · 986 Bytes
/
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
39
40
name: GetTrackers
on:
schedule:
- cron: '0 0,1,5,11,14,17,22 * * *'
workflow_dispatch:
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.11.1'
- name: cache log
id: cache-log
uses: actions/cache@v3
with:
path: log
key: bot-logs
- name: Run pip install wget
run: pip install wget
- name: Run python PyTrackers.py
run: |
python PyTrackers.py
working-directory: ./main
- name: Commit Changes
id: commit
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: 🚀 CI Updated
- name: GitHub Push
if: steps.commit.outputs.changes_detected == 'true'
uses: ad-m/github-push-action@master
with:
github_token: ${{secrets.GITHUB_TOKEN}}
branch: ${{github.ref}}