diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..7fe2a51 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,11 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" + + - package-ecosystem: "pip" + directory: "/" + schedule: + interval: "daily" \ No newline at end of file diff --git a/.github/workflows/run.yml b/.github/workflows/run.yml new file mode 100644 index 0000000..60dc13a --- /dev/null +++ b/.github/workflows/run.yml @@ -0,0 +1,33 @@ +name: "GitHub Actions SMZDM Bot" + +on: + workflow_dispatch: + schedule: + - cron: "0 12 * * *" + +env: + TZ: Asia/Shanghai + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + submodules: true + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: 3.9 + + - name: Install requirements + run: | + pip install -r requirements.txt + + - name: Working + env: + SMZDM_COOKIE: ${{ secrets.SMZDM_COOKIE }} + PUSH_PLUS_TOKEN: ${{ secrets.PUSH_PLUS_TOKEN }} + run: python main.py