summaryrefslogtreecommitdiff
path: root/.github/release-rule-set.sh
blob: 1acf21e71a90753bc9ecebcdaaf72c2d9d1088c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash

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