github action

This commit is contained in:
踢低吸 2023-07-08 06:59:17 +00:00
parent 54a95f7758
commit 6717c5575d

29
.github/workflows/tw165.yml vendored Normal file
View File

@ -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