From 40b3cff2c80921e6e717621a779cdc078b38d6d8 Mon Sep 17 00:00:00 2001 From: tdc Date: Mon, 31 Jul 2023 12:09:47 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E4=BE=9D=E8=B3=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/twnic_rpz.yml | 26 ++++++++++++++++++++ AutoBuild/requirements.txt | 4 +++ AutoBuild/{twnic_rpz_1.0.py => twnic_rpz.py} | 0 3 files changed, 30 insertions(+) create mode 100644 .github/workflows/twnic_rpz.yml rename AutoBuild/{twnic_rpz_1.0.py => twnic_rpz.py} (100%) diff --git a/.github/workflows/twnic_rpz.yml b/.github/workflows/twnic_rpz.yml new file mode 100644 index 0000000..d81bfc6 --- /dev/null +++ b/.github/workflows/twnic_rpz.yml @@ -0,0 +1,26 @@ +name: TWNIC RPZ + +on: + schedule: + - cron: '0 0 * * *' + workflow_dispatch: + +jobs: + update_twnic_rpz_data: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: '3.9' + cache: 'pip' # caching pip dependencies + - 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 ε°ιŽ–εŸŸε' + files: TWNIC-RPZ.txt + name: tdc + email: tdc@sudo.host diff --git a/AutoBuild/requirements.txt b/AutoBuild/requirements.txt index feb5e82..01f65ca 100644 --- a/AutoBuild/requirements.txt +++ b/AutoBuild/requirements.txt @@ -2,4 +2,8 @@ certifi==2023.7.22 charset-normalizer==2.1.1 idna==3.3 requests==2.28.1 +<<<<<<< HEAD urllib3==1.26.12 +======= +urllib3==1.26.12 +>>>>>>> cb56b0e (πŸ”₯ 移陀依賴) 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