GitHub Actions SMZDM Bot #77
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a basic workflow to help you get started with Actions | |
name: "GitHub Actions SMZDM Bot" | |
# Controls when the action will run. Triggers the workflow on push or pull request | |
# events but only for the main branch | |
on: | |
push: | |
# branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
schedule: | |
- cron: '0 23 * * *' | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# This workflow contains a single job called "build" | |
build: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.7 | |
# Runs a set of commands using the runners shell | |
- name: Install requirements | |
run: | | |
pip install -r requirements.txt | |
- name: Working | |
env: | |
COOKIES: __ckguid=WcU6cP24a7xN1gVFE9QuU76; device_id=308390815816608987649505259aa8d9bb512f7d43e69a18e910c027a4; __jsluid_s=36e1199fe89487748faef5e8a730c801; homepage_sug=a; r_sort_type=score; sess=BA-2boRaHLEGrSpvHRm7x02oeUaEhWBkp7hQ2%2FgvJk%2FtnQHPwRMkScYRBXRHD4Cgs1DDuKovoOlW%2B2a4dVPA4usYJpPNjZWvNItwk2oAjNZscd6h8CIt%2BEjZxnq; user=user%3A7477366679%7C7477366679; smzdm_id=7477366679; _zdmA.vid=*; footer_floating_layer=0; ad_date=12; ad_json_feed=%7B%7D; YOUHUI_GET_STREAM_ALL=; PHPSESSID=501753bc64652f5192162cc98c33020e; _zdmA.uid=ZDMA.NlxvjXG33.1691813190.2419200; bannerCounter=%5B%7B%22number%22%3A1%2C%22surplus%22%3A1%7D%2C%7B%22number%22%3A0%2C%22surplus%22%3A1%7D%2C%7B%22number%22%3A1%2C%22surplus%22%3A1%7D%2C%7B%22number%22%3A0%2C%22surplus%22%3A1%7D%2C%7B%22number%22%3A1%2C%22surplus%22%3A1%7D%5D; _zdmA.time=1691813268810.0.https%3A%2F%2Fwww.smzdm.com%2F | |
SERVERCHAN_SECRETKEY: ${{ secrets.SERVERCHAN_SECRETKEY }} | |
run: python main.py #>SMZDM_Bot.log |