fix: Removed broken batches #244
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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.12" | |
- name: install deps | |
run: pip install pyyaml build | |
- name: build | |
run: | | |
python -m build | |
pip install dist/*.whl | |
- name: gen-wiki | |
run: pokete-util wiki | |
- name: Commit files | |
run: | | |
git config --local user.name ${{ github.actor }} | |
git config user.email "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com" | |
if [[ $(git diff) != "" ]] | |
then | |
git pull | |
git add ./docs/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 |