-
Notifications
You must be signed in to change notification settings - Fork 914
55 lines (44 loc) · 1.27 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Update Configs
permissions: write-all
on:
push:
branches:
- main
schedule:
# Run every 10 minutes
- cron: "*/10 * * * *"
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.11'
- name: Stash any local changes
run: git stash
- name: Install dependencies
run: cd Files && pip install -r requirements.txt
- name: Run Config script and save output to file
run: cd Files && python app.py
- name: Run Warp script and save output to file
run: cd Files && python warp.py
- name: Run Splitter script and save output to file
run: cd Files && python sort.py
- name: Check changes
run: |
echo "Checking the changes made..."
git status
ls -l Files/
- name: Commit and push files
uses: EndBug/add-and-commit@v7
with:
author_name: "Github Actions"
author_email: "[email protected]"
message: "Updated 9 minutes Ago ⚡️"
add: "."
push: "https://github.com/barry-far/V2ray-Configs.git"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}