Skip to content

autoQuestPush

autoQuestPush #833

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: autoQuestPush
# Controls when the workflow will run
on:
push:
schedule:
- cron: '0 1 * * *'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
bot:
# The type of runner that the job will run on
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- run: |
pip install requests
pip install wikitextparser
pip install bs4
python ./py/allinone.py
git config --global user.email [email protected]
git config --global user.name callofblood
git add .
# Do not proceed if there are no file differences
FILES_CHANGED=$(git diff-index --name-only --cached HEAD | wc -l)
if [[ "$FILES_CHANGED" = "0" ]]; then
echo "No file changes detected."
exit 0
fi
git commit -m "update"
- uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}