Skip to content

Merge pull request #40 from firehol/ipv6-support #1

Merge pull request #40 from firehol/ipv6-support

Merge pull request #40 from firehol/ipv6-support #1

Workflow file for this run

name: Sync wiki
on:
push:
branches: [master]
paths:
- 'wiki/**'
jobs:
sync:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Checkout wiki
uses: actions/checkout@v4
with:
repository: ${{ github.repository }}.wiki
path: wiki-repo
token: ${{ secrets.GITHUB_TOKEN }}
- name: Sync wiki files
run: |
cp wiki/*.md wiki-repo/
cd wiki-repo
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add -A
if git diff --cached --quiet; then
echo "No wiki changes to sync"
else
git commit -m "Sync wiki from repo"
git push
fi