From 2a6b02bcad85ce1d7bfa36d348db2e8e4b583dbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B8=A2=E4=BD=8E=E5=90=B8?= Date: Sat, 29 Jul 2023 23:54:54 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20=E6=9B=B4=E6=96=B0=20Action=20?= =?UTF-8?q?=E8=A8=AD=E5=AE=9A=EF=BC=8C=E9=81=BF=E5=85=8D=E9=87=8D=E8=A4=87?= =?UTF-8?q?=E5=91=BD=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../workflows/{twnic_rpz_1.0.yml => twnic_rpz.yml} | 14 +++++--------- AutoBuild/{twnic_rpz_1.0.py => twnic_rpz.py} | 0 2 files changed, 5 insertions(+), 9 deletions(-) rename .github/workflows/{twnic_rpz_1.0.yml => twnic_rpz.yml} (62%) rename AutoBuild/{twnic_rpz_1.0.py => twnic_rpz.py} (100%) diff --git a/.github/workflows/twnic_rpz_1.0.yml b/.github/workflows/twnic_rpz.yml similarity index 62% rename from .github/workflows/twnic_rpz_1.0.yml rename to .github/workflows/twnic_rpz.yml index a477940..d81bfc6 100644 --- a/.github/workflows/twnic_rpz_1.0.yml +++ b/.github/workflows/twnic_rpz.yml @@ -1,4 +1,4 @@ -name: TWNIC RPZ 1.0 +name: TWNIC RPZ on: schedule: @@ -6,7 +6,7 @@ on: workflow_dispatch: jobs: - update_165_data: + update_twnic_rpz_data: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -14,17 +14,13 @@ jobs: with: python-version: '3.9' cache: 'pip' # caching pip dependencies - - run: pip install -r AutoBuild/requirements.txt && python AutoBuild/twnic_rpz_1.0.py - env: - tw165json: ${{ vars.TW165JSON }} - tw165csv: ${{ vars.TW165CSV }} - auth: ${{ secrets.AUTH }} + - run: pip install -r AutoBuild/requirements.txt && python AutoBuild/twnic_rpz.py - name: push uses: github-actions-x/commit@v2.9 with: github-token: ${{ secrets.GITHUB_TOKEN }} push-branch: 'master' - commit-message: '🤖 自動更新 TWNIC RPZ 1.0 封鎖域名' - files: TWNIC-RPZ-1.0_RAW.txt TWNIC-RPZ-1.0_AGH.txt + commit-message: '🤖 自動更新 TWNIC RPZ 封鎖域名' + files: TWNIC-RPZ.txt name: tdc email: tdc@sudo.host diff --git a/AutoBuild/twnic_rpz_1.0.py b/AutoBuild/twnic_rpz.py similarity index 100% rename from AutoBuild/twnic_rpz_1.0.py rename to AutoBuild/twnic_rpz.py