Skip to content

GitHub Actions SMZDM Bot #11

GitHub Actions SMZDM Bot

GitHub Actions SMZDM Bot #11

Workflow file for this run

# 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=64b78bc733b4fdc406099bac053c11c4; homepage_sug=a; r_sort_type=score; sess=BA-2boRaHLEGrSpvHRm7x02oeUaEhWBkp7hQ2%2FgvJk%2FtnQHPwRMkScYRBXRHD4Cgs1DDuKovoOlW%2B2a4dVPA4usYJpPNjZWvNItwk2oAjNZscd6h8CIt%2BEjZxnq; user=user%3A7477366679%7C7477366679; smzdm_id=7477366679; _zdmA.uid=ZDMA.NlxvjXG33.1690854235.2419200
SERVERCHAN_SECRETKEY: ${{ secrets.SERVERCHAN_SECRETKEY }}
run: python main.py #>SMZDM_Bot.log