Skip to content

Update hugo theme ranking #19

Update hugo theme ranking

Update hugo theme ranking #19

Workflow file for this run

name: Update hugo theme ranking
on:
#workflow_dispatch:
schedule:
- cron: '0 8 * * *'
jobs:
update:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token.
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run update script
run: |
python update.py ${{ secrets.GITHUB_TOKEN }}
- name: Commit files
run: |
git config --local user.email "smwyzi@qq.com"
git config --local user.name "smwyzi"
git commit -a -m "Update"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: master
force: true