From 6717c5575dbc7fbfe682ca60885c373057599d11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B8=A2=E4=BD=8E=E5=90=B8?= Date: Sat, 8 Jul 2023 06:59:17 +0000 Subject: [PATCH] github action --- .github/workflows/tw165.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/tw165.yml diff --git a/.github/workflows/tw165.yml b/.github/workflows/tw165.yml new file mode 100644 index 0000000..64e11da --- /dev/null +++ b/.github/workflows/tw165.yml @@ -0,0 +1,29 @@ +name: TW165 + +on: + Schedule: + - cron: '0 0 * * *' + workflow_dispatch: + + + +jobs: + auto_close_issues: + 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/tw_165.py + - name: push + uses: github-actions-x/commit@v2.9 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + push-branch: 'master' + commit-message: '🤖 自動更新 165 詐騙網址' + files: TW165.txt + name: tdc + email: tdc@sudo.host +