diff options
Diffstat (limited to '.github')
| -rwxr-xr-x | .github/release-rule-set.sh | 25 |
1 files changed, 16 insertions, 9 deletions
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 "[email protected]" -git config --local user.name "GitHub Action" -git remote add origin https://github-action:[email protected]/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 "[email protected]" + git config --local user.name "GitHub Action" + git remote add origin https://github-action:[email protected]/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 |
