Skip to content

Commit

Permalink
tes
Browse files Browse the repository at this point in the history
  • Loading branch information
malikshi authored Dec 6, 2024
1 parent fbff3af commit d1ba245
Showing 1 changed file with 9 additions and 16 deletions.
25 changes: 9 additions & 16 deletions .github/release-rule-set-geosite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,12 @@

set -e -o pipefail

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:$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
cd sing-geosite/rule-set-geosite
git init
git config --local user.email "[email protected]"
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

0 comments on commit d1ba245

Please sign in to comment.