Skip to content

Commit

Permalink
Update workflow to copy README to Wiki
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianPrieber committed Sep 24, 2024
1 parent 110f188 commit 4f0d648
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/copy-readme-to-wiki.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
with:
repository: ${{ github.repository }}.wiki
path: wiki
ref: main

- name: Copy README.md to wiki
run: |
Expand All @@ -28,7 +29,9 @@ jobs:
- name: Push to wiki
run: |
cd wiki
git config --local user.email "[email protected]"
git config --local user.name "Julian Prieber"
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add README.md
git diff-index --quiet HEAD || git commit -m "Sync README.md to wiki" && git push
git diff-index --quiet HEAD || git commit -m "Sync README.md to wiki" && git push
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

0 comments on commit 4f0d648

Please sign in to comment.