This commit is contained in:
mzz2017 committed 2020-02-26 00:11:15 +00:00
commit 1c3eb0138e
11 files changed
+141938

No files matched your search

+36
View File
@@ -0,0 +1,36 @@
name: release
on:
schedule:
- cron: "0 0 * * *"
env:
ACTION_FILENAME: release.yml
TARGET: Loyalsoldier/v2ray-rules-dat
USER_NAME: mzz2017
USER_EMAIL: mzz@tuta.io
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Check and release
run: |
TARGET_TAG_URL="https://api.github.com/repos/$TARGET/releases/latest"
TARGET_LATEST_VER=`curl -s ${TARGET_TAG_URL} --connect-timeout 30| grep 'tag_name' | cut -d\" -f4`
TARGET_DIST_URLs=`curl -s ${TARGET_TAG_URL} --connect-timeout 30| grep 'browser_download_url' | cut -d\" -f4`
DIST_TAGS_URL="https://api.github.com/repos/${{ github.repository }}/tags"
DIST_TAG_FOUND=`curl -s ${DIST_TAGS_URL} --connect-timeout 30| grep "\"name\"\: \"${TARGET_LATEST_VER}\""` || true
if [ -z ${DIST_TAG_FOUND} ]; then
echo $TARGET_DIST_URLs|while read -r line;do wget $line &> /dev/null;done
mkdir -p .github/workflows
wget -O .github/workflows/release.yml https://github.com/${{ github.repository }}/raw/master/.github/workflows/$ACTION_FILENAME
git init
git add .
git config user.name $USER_NAME
git config user.email $USER_EMAIL
git commit -m "Version ${TARGET_LATEST_VER}"
git tag -a "${TARGET_LATEST_VER}" -m "Version ${TARGET_LATEST_VER}"
git remote add origin "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}"
git push -u --force --follow-tags origin master
fi
+5
View File
@@ -0,0 +1,5 @@
cn
top
xn--55qx5d
xn--fiqs8s
xn--io0a7i
+72543
View File
File diff suppressed because it is too large. Load diff
BIN
View File
Binary file not shown.
+1
View File
@@ -0,0 +1 @@
f680e3bb53987bf56a8406c12aacc65d68ffdff1dd861f09c87298517ef357fc geoip.dat
+40143
View File
File diff suppressed because it is too large. Load diff
+1
View File
@@ -0,0 +1 @@
3833cc388795e88d8979b3ed7b956298046b96e8529893fe370485864ed0ebba geosite.dat
+5
View File
@@ -0,0 +1,5 @@
edu
gov
mil
ms
+20803
View File
File diff suppressed because it is too large. Load diff
+1
View File
@@ -0,0 +1 @@
XiaoQiang
+8400
View File
File diff suppressed because it is too large. Load diff