forked from mrvcoder/V2rayCollector
-
Notifications
You must be signed in to change notification settings - Fork 6
40 lines (34 loc) · 917 Bytes
/
Collector.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: Collector
on:
workflow_dispatch:
schedule:
- cron: "0 */5 * * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Build and run Golang file
run: |
go run ./main.go
- name: Commit Changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git pull origin main
git add ./vmess_iran.txt
git add ./trojan_iran.txt
git add ./vless_iran.txt
git add ./ss_iran.txt
git add ./mixed_iran.txt
git checkout main
git commit -m "✔️ $(date '+%Y-%m-%d %H:%M:%S') Collected"
- name: Push Changes
uses: ad-m/github-push-action@master
with:
branch: main