Merge pull request #40 from firehol/ipv6-support #1
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
| 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 |