From fbff3afc04cdeb4414d4297552e8f69f5486f4c8 Mon Sep 17 00:00:00 2001 From: Malik Al Date: Fri, 6 Dec 2024 21:04:27 +0700 Subject: [PATCH] fixes --- .github/release-rule-set-geosite.sh | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/.github/release-rule-set-geosite.sh b/.github/release-rule-set-geosite.sh index 512cebd2b..3f7e44169 100644 --- a/.github/release-rule-set-geosite.sh +++ b/.github/release-rule-set-geosite.sh @@ -2,12 +2,19 @@ set -e -o pipefail -cd sing-geosite/rule-set-geosite -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/malikshi/sing-box-geo.git -git branch -M rule-set-geosite -git add . -git commit -m "Update rule-set-geosite" -git push -f origin rule-set-geosite \ No newline at end of file +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/malikshi/sing-box-geo.git + git branch -M $dirName + git add . + git commit -m "Update rule-set" + git push -f origin $dirName + popd +} + +releaseRuleSet rule-set-geosite +releaseRuleSet rule-set-geosite-unstable \ No newline at end of file