mirror of
https://github.com/v2rayA/dist-v2ray-rules-dat.git
synced 2026-11-20 22:59:49 +03:00
Version 2020070722
This commit is contained in:
commit
54810f8935
13 files changed
+161998
No files matched your search
@@ -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
|
||||
@@ -0,0 +1,5 @@
|
||||
cn
|
||||
top
|
||||
xn--55qx5d
|
||||
xn--fiqs8s
|
||||
xn--io0a7i
|
||||
+74865
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1 @@
|
||||
38a8b16574e65ea534e28d2365f62181d4bc7c5a275ab2051b1c4db2e746e9fb geoip.dat
|
||||
+45441
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1 @@
|
||||
67d8ac5f04b86994f12584492947f657135529577445ce10291dded620bb4789 geosite.dat
|
||||
@@ -0,0 +1 @@
|
||||
ms
|
||||
+27563
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1 @@
|
||||
XiaoQiang
|
||||
+14081
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1 @@
|
||||
8c63b5506ba0f547a0b7fb0e6abcb486de1e243a9cd2b13e9da683d5ccc6ab1a rules.zip
|
||||
Reference in new issue
Block a user