-
Notifications
You must be signed in to change notification settings - Fork 15
122 lines (101 loc) · 3.67 KB
/
Copy pathphp.yml
File metadata and controls
122 lines (101 loc) · 3.67 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
name: "Let's SiNAVM!"
on:
workflow_dispatch:
schedule:
- cron: '0 */3 * * *'
concurrency:
group: "sinavm-full"
cancel-in-progress: true
jobs:
sinavm-full:
runs-on: ubuntu-latest
env:
PRIVATE_LINK_SiNAVM_1: ${{ secrets.PRIVATE_LINK_SiNAVM_1 }}
PRIVATE_LINK_SiNAVM_2: ${{ secrets.PRIVATE_LINK_SiNAVM_2 }}
PRIVATE_LINK_SiNAVM_3: ${{ secrets.PRIVATE_LINK_SiNAVM_3 }}
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true # این خط اضافه شده است
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
- name: Install Dependencies for HiddifyCli
run: |
sudo apt-get update
sudo apt-get install -y curl tar
- name: Run Clash API
run: |
docker run -d -p 6756:6756 dreamacro/clash --port 6756
sleep 10
- name: Execute PHP script
run: |
set -euo pipefail
git config pull.rebase true
git config rebase.autoStash true
git pull --rebase
php -d display_errors get.php
php -d display_errors config-test.php || true
php -d display_errors channelsAssets.php
php -d display_errors duplicate.php
php -d display_errors sort.php
php -d display_errors toSingbox.php
php -d display_errors toClashSurfboard.php
php -d display_errors hiddifyWarp.php
git config --global user.email "sina.bb2006@gmail.com"
git config --global user.name "sinavm"
git config credential.helper store
for i in {1..3}; do
git pull --rebase
git add -A
commit_message="🤴🏻 Servers Updated - $(TZ='Asia/Tehran' date '+%Y-%m-%d %H:%M:%S')"
git commit -m "$commit_message" --allow-empty
git push && break || sleep 5
done
sinavm-lite:
runs-on: ubuntu-latest
needs: sinavm-full
env:
PRIVATE_LINK_SiNAVM_1: ${{ secrets.PRIVATE_LINK_SiNAVM_1 }}
PRIVATE_LINK_SiNAVM_2: ${{ secrets.PRIVATE_LINK_SiNAVM_2 }}
PRIVATE_LINK_SiNAVM_3: ${{ secrets.PRIVATE_LINK_SiNAVM_3 }}
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true # این خط اضافه شده است
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
- name: Install Dependencies for HiddifyCli
run: |
sudo apt-get update
sudo apt-get install -y curl tar
- name: Run Clash API
run: |
docker run -d -p 6756:6756 dreamacro/clash --port 6756
sleep 10
- name: Execute PHP script
run: |
set -euo pipefail
git config pull.rebase true
git config rebase.autoStash true
git pull --rebase
cd lite
php -d display_errors ../get.php
php -d display_errors ../config-test.php || true
php -d display_errors duplicate.php
php -d display_errors sort.php
php -d display_errors ../toSingbox.php
php -d display_errors ../toClashSurfboard.php
git config --global user.email "sina.bb2006@gmail.com"
git config --global user.name "sinavm"
git config credential.helper store
for i in {1..3}; do
git pull --rebase
git add -A
commit_message="👸🏻 Lite Servers Updated - $(TZ='Asia/Tehran' date '+%Y-%m-%d %H:%M:%S')"
git commit -m "$commit_message" --allow-empty
git push && break || sleep 5
done