Skip to content

qita setup

qita setup #7508

Workflow file for this run

name: qita setup
on:
schedule:
- cron: '0 * * * *' #14-在晚上22点起运行,时区应该是+8
# 手动运行
workflow_dispatch:
jobs:
push:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
# in this example, there is a newer version already installed, 3.7.7, so the older version will be downloaded
operating-system: ['ubuntu-20.04']
steps:
- uses: actions/checkout@v3 # Checking out the repo
- name: Run with setup-python 3.8
uses: actions/setup-python@v3
with:
python-version: '3.9'
update-environment: false
cache: 'pipenv'
- name: Install pipenv
run: pip3 install --user pipenv
- name: Install dependecies
run: pipenv --python python3 && pipenv install
# 安装所需的包
- name: Install dependencies
run: |
pip install selenium requests futures eventlet
pip install beautifulsoup4
- name: Run ip_check.py
run: python ${{ github.workspace }}/ip_check.py
- name: Run hotel_ip_seek
run: python ${{ github.workspace }}/hotel_ip_seek.py
- name: 提交更改
run: |
git config --local user.name "xzw832"
git config --local user.email "g832@x-zw.com"
git add .
git commit *.txt -m "Add generated file"
git push -f