-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 9c7c680
Showing
20 changed files
with
310,222 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: release | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 0 * * 3" | ||
|
||
env: | ||
ACTION_FILENAME: release.yml | ||
TARGET: Loyalsoldier/v2ray-rules-dat | ||
REQUIRED_FILES: | | ||
geoip.dat | ||
geoip.dat.sha256sum | ||
geosite.dat | ||
geosite.dat.sha256sum | ||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check and release | ||
run: | | ||
set -ex | ||
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` | ||
NORMALIZED_TARGET_TAG="${TARGET_LATEST_VER//[^0-9]/}" | ||
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\"\: \"${NORMALIZED_TARGET_TAG}\""` || 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 "${NORMALIZED_TARGET_TAG}" -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,167 @@ | ||
full:a1.mzstatic.com | ||
full:a2.mzstatic.com | ||
full:a3.mzstatic.com | ||
full:a4.mzstatic.com | ||
full:a5.mzstatic.com | ||
full:adcdownload.apple.com.akadns.net | ||
full:adcdownload.apple.com | ||
full:amp-api.media.apple.com | ||
full:api-p-ap-c.smoot.apple.com | ||
full:api-p-ap-d.smoot.apple.com | ||
full:api-p-ap-e.smoot.apple.com | ||
full:app-site-association.cdn-apple.com | ||
full:appldnld.apple.com | ||
full:appldnld.g.aaplimg.com | ||
full:appleid.cdn-apple.com | ||
full:apps.apple.com | ||
full:apps.mzstatic.com | ||
full:cdn-cn1.apple-mapkit.com | ||
full:cdn-cn2.apple-mapkit.com | ||
full:cdn-cn3.apple-mapkit.com | ||
full:cdn-cn4.apple-mapkit.com | ||
full:cdn.apple-mapkit.com | ||
full:cdn1.apple-mapkit.com | ||
full:cdn2.apple-mapkit.com | ||
full:cdn3.apple-mapkit.com | ||
full:cdn4.apple-mapkit.com | ||
full:cds-cdn.v.aaplimg.com | ||
full:cds.apple.com.akadns.net | ||
full:cds.apple.com | ||
full:cdsassets.apple.com | ||
full:cl1-cdn.origin-apple.com.akadns.net | ||
full:cl1.apple.com | ||
full:cl2-cn.apple.com | ||
full:cl2.apple.com | ||
full:cl3-cdn.origin-apple.com.akadns.net | ||
full:cl3.apple.com | ||
full:cl4-cdn.origin-apple.com.akadns.net | ||
full:cl4-cn.apple.com | ||
full:cl4.apple.com | ||
full:cl5-cdn.origin-apple.com.akadns.net | ||
full:cl5.apple.com | ||
full:clientflow.apple.com.akadns.net | ||
full:clientflow.apple.com | ||
full:cn-smp-paymentservices.apple.com | ||
full:configuration.apple.com.akadns.net | ||
full:configuration.apple.com | ||
full:cstat.apple.com | ||
full:cstat.cdn-apple.com | ||
full:dd-cdn.origin-apple.com.akadns.net | ||
full:dejavu.apple.com | ||
full:download.developer.apple.com | ||
full:experiments.apple.com | ||
full:gs-loc-cn.apple.com | ||
full:gs-loc.apple.com | ||
full:gsp10-ssl-cn.ls.apple.com | ||
full:gsp12-cn.ls.apple.com | ||
full:gsp13-cn.ls.apple.com | ||
full:gsp4-cn.ls.apple.com.edgekey.net.globalredir.akadns.net | ||
full:gsp4-cn.ls.apple.com.edgekey.net | ||
full:gsp4-cn.ls.apple.com | ||
full:gsp5-cn.ls.apple.com | ||
full:gsp85-cn-ssl.ls.apple.com | ||
full:gspe19-2-cn-ssl.ls.apple.com | ||
full:gspe19-cn-ssl.ls.apple.com | ||
full:gspe19-cn.ls-apple.com.akadns.net | ||
full:gspe19-cn.ls.apple.com | ||
full:gspe21-ssl.ls.apple.com | ||
full:gspe21.ls.apple.com | ||
full:gspe35-ssl.ls.apple.com | ||
full:gspe79-cn-ssl.ls.apple.com | ||
full:guzzoni-apple-com.v.aaplimg.com | ||
full:guzzoni.apple.com | ||
full:guzzoni.smoot.apple.com | ||
full:iadsdk.apple.com | ||
full:icloud-cdn.icloud.com.akadns.net | ||
full:icloud.cdn-apple.com | ||
full:images.apple.com.akadns.net | ||
full:images.apple.com.edgekey.net.globalredir.akadns.net | ||
full:images.apple.com | ||
full:init-kt.apple.com | ||
full:init-p01md-lb.push-apple.com.akadns.net | ||
full:init-p01md.apple.com | ||
full:init-p01st-lb.push-apple.com.akadns.net | ||
full:init-p01st.push.apple.com | ||
full:init-s01st-lb.push-apple.com.akadns.net | ||
full:init-s01st.push.apple.com | ||
full:init.ess.apple.com | ||
full:iosapps.itunes.g.aaplimg.com | ||
full:ipcdn.apple.com | ||
full:iphone-ld.apple.com | ||
full:iphone-ld.origin-apple.com.akadns.net | ||
full:is1-ssl.mzstatic.com | ||
full:is1.mzstatic.com | ||
full:is2-ssl.mzstatic.com | ||
full:is2.mzstatic.com | ||
full:is3-ssl.mzstatic.com | ||
full:is3.mzstatic.com | ||
full:is4-ssl.mzstatic.com | ||
full:is4.mzstatic.com | ||
full:is5-ssl.mzstatic.com | ||
full:is5.mzstatic.com | ||
full:itunes-apple.com.akadns.net | ||
full:itunes.apple.com | ||
full:itunesconnect.apple.com | ||
full:mesu-cdn.apple.com.akadns.net | ||
full:mesu-china.apple.com.akadns.net | ||
full:mesu.apple.com | ||
full:ml.cdn-apple.com | ||
full:music.apple.com | ||
full:ocsp-lb.apple.com.akadns.net | ||
full:ocsp2-lb.apple.com.akadns.net | ||
full:ocsp.apple.com | ||
full:ocsp2.apple.com | ||
full:oscdn.apple.com | ||
full:oscdn.origin-apple.com.akadns.net | ||
full:osxapps.itunes.g.aaplimg.com | ||
full:pancake.apple.com | ||
full:pancake.cdn-apple.com.akadns.net | ||
full:pba0.apple.com | ||
full:probe.siri.apple.com | ||
full:prod-support.apple-support.akadns.net | ||
full:publicassets.cdn-apple.com | ||
full:reserve-prime.apple.com | ||
full:s.mzstatic.com | ||
full:seed-sequoia.siri.apple.com | ||
full:seed-swallow.siri.apple.com | ||
full:seed.siri.apple.com | ||
full:sequoia.apple.com | ||
full:sh-pod2-smp-device.apple.com | ||
full:shazam-insights.cdn-apple.com | ||
full:smp-device-content.apple.com | ||
full:static.gc.apple.com | ||
full:stocks-sparkline-lb.apple.com.akadns.net | ||
full:stocks-sparkline.apple.com | ||
full:store.apple.com.edgekey.net.globalredir.akadns.net | ||
full:store.apple.com.edgekey.net | ||
full:store.apple.com | ||
full:store.storeimages.apple.com.akadns.net | ||
full:store.storeimages.cdn-apple.com | ||
full:support-china.apple-support.akadns.net | ||
full:support.apple.com | ||
full:swallow-apple-com.v.aaplimg.com | ||
full:swallow.apple.com | ||
full:swcatalog-cdn.apple.com.akadns.net | ||
full:swcatalog.apple.com | ||
full:swcdn.apple.com | ||
full:swcdn.g.aaplimg.com | ||
full:swdist.apple.com.akadns.net | ||
full:swdist.apple.com | ||
full:swscan-cdn.apple.com.akadns.net | ||
full:swscan.apple.com | ||
full:sylvan.apple.com | ||
full:tj-pod1-smp-device.apple.com | ||
full:updates-http.cdn-apple.com.akadns.net | ||
full:updates-http.cdn-apple.com | ||
full:updates.cdn-apple.com | ||
full:valid.apple.com | ||
full:valid.origin-apple.com.akadns.net | ||
full:weather-data.apple.com.akadns.net | ||
full:weather-data.apple.com | ||
full:weather-map.apple.com | ||
full:weather-map2.apple.com | ||
full:weatherkit.apple.com | ||
full:www.apple.com.edgekey.net.globalredir.akadns.net | ||
full:www.apple.com.edgekey.net | ||
full:www.apple.com | ||
full:xp.apple.com |
Oops, something went wrong.