-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
close: #45
- Loading branch information
Showing
18 changed files
with
52 additions
and
160 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Update uBlacklist subcription weekly | ||
name: Update uBlacklist subscription weekly | ||
|
||
on: | ||
schedule: | ||
|
@@ -22,47 +22,22 @@ jobs: | |
go-version: '>=1.17.0' | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Setup Git | ||
env: | ||
MY_SECRET : ${{secrets.commit_secret}} | ||
run: | | ||
git config --global user.name ${{secrets.username}} | ||
git config --global user.email ${{secrets.useremail}} | ||
git config --global init.defaultBranch main | ||
- name: Update source | ||
run: | | ||
rm -rf source | ||
mkdir source | ||
git clone --depth 1 https://github.com/YeSilin/uBlacklist.git source/YeSilin/uBlacklist | ||
git clone --depth 1 https://github.com/cobaltdisco/Google-Chinese-Results-Blocklist.git source/cobaltdisco/Google-Chinese-Results-Blocklist | ||
git clone --depth 1 https://github.com/gyli/Blocklist.git source/gyli/Blocklist | ||
git clone --depth 1 https://github.com/h-matsuo/uBlacklist-subscription-for-developer.git source/h-matsuo/uBlacklist-subscription-for-developer | ||
git clone --depth 1 https://github.com/littleserendipity/uBlacklist-Subscription.git source/littleserendipity/uBlacklist-Subscription | ||
git clone --depth 1 https://github.com/liubiantao/uBlacklist-Websites.git source/liubiantao/uBlacklist-Websites | ||
git clone --depth 1 https://github.com/nonPointer/uBlacklist-Subscription.git source/nonPointer/uBlacklist-Subscription | ||
# git clone --depth 1 https://github.com/scyrte/uBlacklist-Subscription.git source/scyrte/uBlacklist-Subscription | ||
git clone --depth 1 https://github.com/xNathan/uBlacklist-subscription.git source/xNathan/uBlacklist-subscription | ||
git clone --depth 1 https://github.com/arosh/ublacklist-stackoverflow-translation.git source/arosh/ublacklist-stackoverflow-translation | ||
# git clone --depth 1 https://github.com/DivineEngine/uBlacklist.git source/DivineEngine/uBlacklist | ||
git clone --depth 1 https://github.com/dallaslu/penzai-list.git source/dallaslu/penzai-list | ||
git clone --depth 1 https://github.com/eallion/uBlacklist-Subscription.git source/eallion/uBlacklist-Subscription | ||
# git clone --depth 1 https://github.com/yangjingchuang/ublacklist-subscription.git source/yangjingchuang/ublacklist-subscription | ||
submodules: recursive | ||
|
||
- name: Merge txt | ||
run: | | ||
cp source/gyli/Blocklist/BLOCKLIST source/gyli/Blocklist/blocklist.txt | ||
cp source/gyli/Blocklist/BLOCKLIST_uBlacklist source/gyli/Blocklist/blocklist.txt | ||
rm uBlacklist.txt | ||
rm uBlocklist.txt | ||
rm tools/uBlacklist_backup.txt | ||
touch time.txt | ||
echo " Update weekly at $(TZ=UTC-8 date +"%Y-%m-%d"" ""%T"" UTC+0800")" >> time.txt | ||
find . -type f -name "*.txt" -exec cat {} \;> tools/uBlacklist | ||
rm source/gyli/Blocklist/blocklist.txt | ||
rm source/Paxxs/Google-Blocklist/data | ||
rm time.txt | ||
cd tools | ||
mv uBlacklist uBlacklist.txt | ||
|
@@ -73,36 +48,11 @@ jobs: | |
ln -s uBlacklist.txt uBlocklist.txt | ||
- name: Commit files | ||
run: | | ||
git add -u | ||
git reset -- source/* | ||
git commit -m "ci(build): update weekly at $(TZ=UTC-8 date +"%Y-%m-%d"" ""%T"" UTC+0800")" | ||
git remote set-url --add --push origin https://[email protected]/eallion/uBlacklist-subscription-compilation.git | ||
git push origin main -f | ||
echo 🤘 Update complete. | ||
# - name: Upload to COS via COSCLI | ||
# run: | | ||
# wget https://github.com/tencentyun/coscli/releases/download/v0.10.2-beta/coscli-linux -qO coscli | ||
# chmod 755 coscli | ||
# cp tools/.cos.yaml ~/.cos.yaml | ||
# sed -i 's/TENCENT_CLOUD_SECRET_ID/${{ secrets.TENCENT_CLOUD_SECRET_ID }}/g' ~/.cos.yaml | ||
# sed -i 's/TENCENT_CLOUD_SECRET_KEY/${{ secrets.TENCENT_CLOUD_SECRET_KEY }}/g' ~/.cos.yaml | ||
# sed -i 's/TENCENT_CLOUD_BUCKETS/${{ secrets.TENCENT_CLOUD_BUCKETS }}/g' ~/.cos.yaml | ||
# ./coscli sync uBlacklist.txt cos://${{ secrets.TENCENT_CLOUD_BUCKETS }}/uBlacklist.txt -c ~/.cos.yaml | ||
|
||
# - name: Upload to COS | ||
# uses: zkqiang/[email protected] | ||
# with: | ||
# args: delete -f uBlacklist.txt && upload -rs uBlacklist.txt / -H "{'content-type':'text/plain;charset=utf-8'}" | ||
# secret_id: ${{ secrets.TENCENT_CLOUD_SECRET_ID }} | ||
# secret_key: ${{ secrets.TENCENT_CLOUD_SECRET_KEY }} | ||
# bucket: ${{ secrets.TENCENT_CLOUD_BUCKETS }} | ||
# region: ap-shanghai | ||
|
||
# - name: Refresh CDN | ||
# run: | | ||
# sed -i 's/SecretId/${{ secrets.TENCENT_CLOUD_SECRET_ID }}/g' tools/cdn.go | ||
# sed -i 's/SecretKey/${{ secrets.TENCENT_CLOUD_SECRET_KEY }}/g' tools/cdn.go | ||
# cd tools | ||
# go run cdn.go | ||
uses: EndBug/add-and-commit@v9 | ||
with: | ||
message: 'ci(build): update weekly at $(TZ=UTC-8 date +"%Y-%m-%d"" ""%T"" UTC+0800")' | ||
committer_name: 'github-actions[bot]' | ||
committer_email: 'github-actions[bot]@users.noreply.github.com' | ||
add: | | ||
'uBlacklist.txt' | ||
'tools/uBlacklist_backup.txt' |
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
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
Submodule Google-Blocklist
added at
7bbe4d
Submodule ublacklist-stackoverflow-translation
updated
28 files
+11 −3 | .github/workflows/generate-files.yml | |
+32 −0 | .github/workflows/test.yml | |
+83 −0 | CONTRIBUTING.md | |
+8 −0 | Makefile | |
+50 −53 | README.md | |
+1 −0 | contrib/README.md | |
+18 −0 | contrib/ublock/README.md | |
+41 −0 | contrib/ublock/generate.rb | |
+4 −0 | contrib/ublock/generate.sh | |
+1,675 −0 | contrib/ublock/uBlockOrigin.txt | |
+319 −244 | domain-list.yml | |
+105 −55 | evidence.md | |
+10 −0 | go.mod | |
+10 −0 | go.sum | |
+ − | img/policy01.png | |
+ − | img/policy02.png | |
+ − | img/policy03.png | |
+117 −0 | run_test.go | |
+12 −0 | test_of_tests.sh | |
+8 −0 | testdata/duplicated.yml | |
+8 −0 | testdata/duplicated_wildcard.yml | |
+4 −0 | testdata/empty.yml | |
+4 −0 | testdata/not_match.yml | |
+4 −0 | testdata/not_match_wildcard.yml | |
+4 −0 | testdata/not_stackexchange.yml | |
+4 −0 | testdata/not_stackexchange_wildcard.yml | |
+4 −0 | testdata/not_stackoverflow.yml | |
+104 −54 | uBlacklist.txt |
Submodule Google-Chinese-Results-Blocklist
updated
4 files
+491 −6 | GHHbD_perma_ban_list.txt | |
+36 −10 | README.md | |
+4 −2 | uBlacklist_match_patterns.txt | |
+491 −14 | uBlacklist_subscription.txt |
Submodule penzai-list
updated
from 563927 to 86d832
Submodule uBlacklist-Subscription
added at
c9a43c
Submodule uBlacklist-Subscription
added at
988af4
Submodule some-rules-for-ublacklist
added at
5dab50
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 @@ | ||
uBlacklist.txt |