This commit is contained in:
mzz2017 committed 2020-07-22 00:09:18 +00:00
commit d486b9a7a9
13 files changed
+154446

No files matched your search

+38
View File
@@ -0,0 +1,38 @@
name: release
on:
schedule:
- cron: "0 0 * * 3"
env:
ACTION_FILENAME: release.yml
TARGET: Loyalsoldier/v2ray-rules-dat
REQUIRED_FILES: |
geoip.dat
geosite.dat
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
echo $REQUIRED_FILES|while read -r line;do ls $line;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 --local user.name "${{ github.actor }}"
git config --local user.email "${{ github.actor }}@users.noreply.github.com"
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
+74550
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 @@
3a44acacfdc1f5d76496e99138c385a1be38b4a6d6bf58fe587d394ad2183f53 geoip.dat
+44709
View File
File diff suppressed because it is too large. Load diff
+1
View File
@@ -0,0 +1 @@
cf1d3977506a8d4d7263dc5b2dd316d4c6adf18a563de13ea6fca1bb60989e5e geosite.dat
+1
View File
@@ -0,0 +1 @@
ms
+21075
View File
File diff suppressed because it is too large. Load diff
+1
View File
@@ -0,0 +1 @@
XiaoQiang
+14064
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 @@
9be275d5d6f22b98149a1f8b829df3fc0ffcb7b51627069ffbbc3a9af1d60cf9 rules.zip