sing-geosite/.github/release-rule-set.sh
Gaoyang Zhang 99006477f1
Fix GitHub repository url in action scripts
Signed-off-by: Gaoyang Zhang <gy@blurgy.xyz>
2024-01-16 10:06:22 +08:00

14 lines
359 B
Bash
Executable File

#!/bin/bash
set -e -o pipefail
cd rule-set
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/benetjohn/sing-geosite.git
git branch -M rule-set
git add .
git commit -m "Update rule-set"
git push -f origin rule-set