Skip to content

Commit

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

set -e -o pipefail

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
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

0 comments on commit fbff3af

Please sign in to comment.