Skip to content

Merge pull request #388 from jkroepke/argocd #74

Merge pull request #388 from jkroepke/argocd

Merge pull request #388 from jkroepke/argocd #74

Workflow file for this run

name: Push to GH Wiki
on:
push:
branches:
- main
paths:
- docs/**
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3
with:
repository: ${{ github.repository }}.wiki
path: wiki
- name: sync wiki
run: rsync -av --delete --exclude=ARGOCD.md --exclude=README.md --exclude=.git docs/ wiki/
- name: remove header line
run: sed -i '1d' wiki/*.md
- name: Commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add .
git diff-index --quiet HEAD || git commit -m "Automatically publish wiki" && git push
working-directory: wiki