From 9f8a5e7cba4f10cbb65ea2ba2ce81201bdb0595a Mon Sep 17 00:00:00 2001 From: 世界 Date: Thu, 18 Jul 2024 13:36:35 +0800 Subject: Generate new rule-sets --- .github/release-rule-set.sh | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) (limited to '.github') diff --git a/.github/release-rule-set.sh b/.github/release-rule-set.sh index efb577d..1acf21e 100755 --- a/.github/release-rule-set.sh +++ b/.github/release-rule-set.sh @@ -2,12 +2,19 @@ set -e -o pipefail -cd rule-set -git init -git config --local user.email "github-action@users.noreply.github.com" -git config --local user.name "GitHub Action" -git remote add origin https://github-action:$GITHUB_TOKEN@github.com/SagerNet/sing-geosite.git -git branch -M rule-set -git add . -git commit -m "Update rule-set" -git push -f origin rule-set +function releaseRuleSet() { + dirName=$1 + pushd $dirName + git init + git config --local user.email "github-action@users.noreply.github.com" + git config --local user.name "GitHub Action" + git remote add origin https://github-action:$GITHUB_TOKEN@github.com/SagerNet/sing-geosite.git + git branch -M $dirName + git add . + git commit -m "Update rule-set" + git push -f origin $dirName + popd +} + +releaseRuleSet rule-set +releaseRuleSet rule-set-unstable -- cgit v1.3.1