chore: reorganize repository layout and optimize README
This commit is contained in:
@@ -30,13 +30,13 @@ jobs:
|
||||
- name: Prepare config
|
||||
shell: bash
|
||||
run: |
|
||||
if [ -f config.toml ]; then
|
||||
echo "Use existing config.toml"
|
||||
elif [ -f config.json ]; then
|
||||
echo "Use existing config.json"
|
||||
elif [ -f config.example.toml ]; then
|
||||
cp config.example.toml config.toml
|
||||
echo "Generated config.toml from example"
|
||||
if [ -f configs/config.toml ]; then
|
||||
echo "Use existing configs/config.toml"
|
||||
elif [ -f configs/config.json ]; then
|
||||
echo "Use existing configs/config.json"
|
||||
elif [ -f configs/examples/config.example.toml ]; then
|
||||
cp configs/examples/config.example.toml configs/config.toml
|
||||
echo "Generated configs/config.toml from example"
|
||||
else
|
||||
echo "No config file found" >&2
|
||||
exit 1
|
||||
@@ -49,11 +49,11 @@ jobs:
|
||||
run: |
|
||||
set -euo pipefail
|
||||
UPSTREAM_REF="${UPSTREAM_REF:-master}"
|
||||
bash scripts/sync_surge_full.sh
|
||||
if [ -f config.toml ]; then
|
||||
python3 main.py --config config.toml
|
||||
bash tools/sync_surge_full.sh
|
||||
if [ -f configs/config.toml ]; then
|
||||
python3 src/rulegen.py --config configs/config.toml
|
||||
else
|
||||
python3 main.py --config config.json
|
||||
python3 src/rulegen.py --config configs/config.json
|
||||
fi
|
||||
|
||||
- name: Commit and push builder updates
|
||||
|
||||
Reference in New Issue
Block a user