Skip to content

build(deps): bump jinja2 from 3.1.3 to 3.1.4 (#1166) #87

build(deps): bump jinja2 from 3.1.3 to 3.1.4 (#1166)

build(deps): bump jinja2 from 3.1.3 to 3.1.4 (#1166) #87

name: Publish docs to Wiki
on:
push:
paths:
- docs/**
branches:
- main
env:
USER_TOKEN: ${{ secrets.WIKI_ACTION_TOKEN }}
USER_NAME: ocpp
USER_EMAIL: ocpp@lbbrhzn.nl
OWNER: ${{ github.event.repository.owner.name }}
REPOSITORY_NAME: ${{ github.event.repository.name }}
jobs:
publish_docs_to_wiki:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Pull wiki
run: |
mkdir tmp_wiki
cd tmp_wiki
git init
git config user.name $USER_NAME
git config user.email $USER_EMAIL
git pull https://$USER_TOKEN@github.com/$OWNER/$REPOSITORY_NAME.wiki.git
- name: Push wiki
run: |
rsync -av --delete docs/ tmp_wiki/ --exclude .git
cd tmp_wiki
git add .
git commit -m "Update Wiki content"
git push -f --set-upstream https://$USER_TOKEN@github.com/$OWNER/$REPOSITORY_NAME.wiki.git master