-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 1.06 KB
/
acl.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
name: shadowsocks-acl
on:
workflow_dispatch:
schedule:
- cron: "*/360 * * * *"
push:
branches: [ "main" ]
paths-ignore: ["**/README.md"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: build acl
run: |
mkdir tmp
chmod 777 genacl_proxy_gfw_bypass_china_ip.py
./genacl_proxy_gfw_bypass_china_ip.py tmp/shadowsocks.acl
- name: Git push assets to "release" branch
run: |
cd tmp || exit 1
git config --global init.defaultBranch main
git init
git config --local user.name "github-actions"
git config --local user.email "[email protected]"
git checkout -b release
git add --all
git commit -m "sync"
git remote add shadowsocks-acl "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}"
git push -f shadowsocks-acl release