mirror of
https://github.com/KaringX/karing-ruleset.git
synced 2025-06-08 18:04:13 +08:00
test rename dir
This commit is contained in:
parent
f5bc3b819d
commit
903ca174bd
17
.github/workflows/run.yml
vendored
17
.github/workflows/run.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: Convert ACL4SSR to sing-box rule set
|
name: Convert other rules to sing-box rule set
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
schedule:
|
schedule:
|
||||||
@ -15,7 +15,7 @@ jobs:
|
|||||||
- name: Checkout scripts
|
- name: Checkout scripts
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: KaringX/ACL4SSR
|
repository: KaringX/karing-ruleset
|
||||||
path: workflow
|
path: workflow
|
||||||
ref: workflow
|
ref: workflow
|
||||||
|
|
||||||
@ -30,10 +30,10 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
NO_SKIP: true
|
NO_SKIP: true
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ./sing-rule/Ruleset
|
mkdir -p ./sing-rule/ACL4SSR/Ruleset
|
||||||
cp ./workflow/resouces/convert_* ./sing-rule/
|
cp ./workflow/resouces/convert_* ./sing-rule/ACL4SSR/
|
||||||
cd sing-rule || exit 1
|
cd sing-rule/ACL4SSR/ || exit 1
|
||||||
python convert_json.py ../ACL4SSR/Clash ./
|
python convert_json.py ../../ACL4SSR/Clash ./
|
||||||
|
|
||||||
- name: Convert json to srs
|
- name: Convert json to srs
|
||||||
env:
|
env:
|
||||||
@ -41,12 +41,13 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd sing-rule || exit 1
|
cd sing-rule || exit 1
|
||||||
wget -q https://github.com/SagerNet/sing-box/releases/download/v1.8.12/sing-box-1.8.12-linux-amd64.tar.gz -O sing-box.tar.gz && tar zxvf sing-box.tar.gz && mv sing-box-1.8.12-linux-amd64/sing-box ./
|
wget -q https://github.com/SagerNet/sing-box/releases/download/v1.8.12/sing-box-1.8.12-linux-amd64.tar.gz -O sing-box.tar.gz && tar zxvf sing-box.tar.gz && mv sing-box-1.8.12-linux-amd64/sing-box ./
|
||||||
chmod 755 sing-box convert_srs.sh && ./convert_srs.sh
|
chmod 755 sing-box ACL4SSR/convert_srs.sh && ./ACL4SSR/convert_srs.sh
|
||||||
rm -rf sing-box* convert_* LICENSE README.md
|
rm -rf sing-box* LICENSE README.md ACL4SSR/convert_*
|
||||||
|
|
||||||
- name: Git push assets to "sing-rule" branch
|
- name: Git push assets to "sing-rule" branch
|
||||||
run: |
|
run: |
|
||||||
cd sing-rule || exit 1
|
cd sing-rule || exit 1
|
||||||
|
cp ../workflow/README.md .
|
||||||
ls
|
ls
|
||||||
git init
|
git init
|
||||||
git config --local user.name "github-actions[bot]"
|
git config --local user.name "github-actions[bot]"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user