From f1f63e5cc5b3cc42fe434312b88d817b1811071f Mon Sep 17 00:00:00 2001 From: WuTofu Date: Wed, 31 Aug 2022 22:22:34 +0800 Subject: [PATCH 1/4] Merge pure_domain.yml into auto_newversion.yml --- .github/workflows/auto_newversion.yml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/auto_newversion.yml b/.github/workflows/auto_newversion.yml index 72295b9..862e5e6 100644 --- a/.github/workflows/auto_newversion.yml +++ b/.github/workflows/auto_newversion.yml @@ -4,11 +4,10 @@ on: push: paths: - "**.txt" + - "AutoBuild/pure_domain.py" jobs: - # This workflow contains a single job called "build" build: - # The type of runner that the job will run on runs-on: ubuntu-latest steps: @@ -19,12 +18,19 @@ jobs: with: python-version: "3.x" + - name: Run AutoBuild + run: | + cd ${{ github.workspace }}/AutoBuild + python pure_domain.py + - id: files uses: jitterbit/get-changed-files@v1 with: format: "csv" - - run: | - cd AutoBuild + + - name: Run AutoUpdateVerNum + run: | + cd ${{ github.workspace }}/AutoBuild mapfile -d ',' -t added_modified_files < <(printf '%s,' '${{ steps.files.outputs.added_modified }}') for added_modified_file in "${added_modified_files[@]}"; do python auto_update_version.py ${added_modified_file} @@ -34,7 +40,13 @@ jobs: run: | git config --local user.email "action@github.com" git config --local user.name "GitHub Action" + git add domains.txt + git commit -m "🤖 自動更新 domains.txt" || echo "[INFO] Fail to commit domains.txt, may not need to update the file?" git add *.txt git commit -m "🤖 自動更新 版本號" + - name: Push changes uses: ad-m/github-push-action@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + branch: ${{ github.ref }} From 0909f83d81391507347e6dd9767e69f9db74353f Mon Sep 17 00:00:00 2001 From: WuTofu Date: Wed, 31 Aug 2022 22:22:49 +0800 Subject: [PATCH 2/4] Delete pure_domain.yml --- .github/workflows/pure_domain.yml | 44 ------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 .github/workflows/pure_domain.yml diff --git a/.github/workflows/pure_domain.yml b/.github/workflows/pure_domain.yml deleted file mode 100644 index 0e6bdda..0000000 --- a/.github/workflows/pure_domain.yml +++ /dev/null @@ -1,44 +0,0 @@ -name: PureDomain - -on: - workflow_dispatch: - push: - paths: - - "hosts.txt" - - "AutoBuild/pure_domain.py" - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: Wait for auto new version finished - uses: lewagon/wait-on-check-action@v1.0.0 - with: - ref: ${{ github.ref }} - running-workflow-name: "Auto Update Version" - repo-token: ${{ secrets.GITHUB_TOKEN }} - wait-interval: 10 - allowed-conclusions: success,skipped,cancelled - - - uses: actions/checkout@v2 - - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: "3.x" - - - name: Run AutoBuild - run: | - git pull - cd AutoBuild - python pure_domain.py - - - name: Commit files - run: | - git config --local user.email "action@github.com" - git config --local user.name "GitHub Action" - git add domains.txt - git commit -m "🤖 自動更新 domains.txt" - - name: Push changes - uses: ad-m/github-push-action@master From cae9e4be14933328b6cad22f6d1689218f630191 Mon Sep 17 00:00:00 2001 From: WuTofu Date: Wed, 31 Aug 2022 22:24:43 +0800 Subject: [PATCH 3/4] Remove action test flag --- hosts.txt | 2 -- 1 file changed, 2 deletions(-) diff --git a/hosts.txt b/hosts.txt index 7f0bfc7..aaf1baf 100644 --- a/hosts.txt +++ b/hosts.txt @@ -209,5 +209,3 @@ /tw\S{2}gov\.com/ /\S{3}gov\.(com|tv|me|top)/ /butie\S+\.(shop|xyz)/ - -! action test flag \ No newline at end of file From 198929f05029c230d000ad254f268994efdde1c7 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Wed, 31 Aug 2022 14:24:55 +0000 Subject: [PATCH 4/4] =?UTF-8?q?=F0=9F=A4=96=20=E8=87=AA=E5=8B=95=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=20=E7=89=88=E6=9C=AC=E8=99=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hosts.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosts.txt b/hosts.txt index aaf1baf..714a4fa 100644 --- a/hosts.txt +++ b/hosts.txt @@ -1,7 +1,7 @@ ! FutaHosts ! LowTechFilter Host ! URL: -! Version: 2022.0831.9 +! Version: 2022.0831.10 ! -------------------------------------------------- ! 白清單 @@||ip2location.com^