Skip to content

feat(#287): Fixed github actions #222

feat(#287): Fixed github actions

feat(#287): Fixed github actions #222

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: gen-wiki
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
gen-wiki:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: install deps
run: pip install scrap_engine
- name: gen-wiki
run: python util.py wiki
- name: Commit files
run: |
git config --local user.name ${{ github.actor }}
if [[ $(git diff) != "" ]]
then
git pull
git add ./wiki.md
git commit -m "Updated wiki"
fi
- name: Push changes # push the output folder to your repo
uses: ad-m/github-push-action@master
with:
fetch-depth: 0
github_token: ${{ secrets.GITHUB_TOKEN }}
force: false