Compare commits
1 Commits
bugfix/iss
...
fix/sonarc
| Author | SHA1 | Date | |
|---|---|---|---|
| 523574a93e |
12
.github/workflows/sync-wiki.yml
vendored
12
.github/workflows/sync-wiki.yml
vendored
@@ -23,16 +23,14 @@ jobs:
|
|||||||
git config --global user.email "actions@github.com"
|
git config --global user.email "actions@github.com"
|
||||||
|
|
||||||
- name: Clone wiki repository
|
- name: Clone wiki repository
|
||||||
env:
|
|
||||||
GH_REPOSITORY: ${{ github.repository }}
|
|
||||||
run: |
|
run: |
|
||||||
git clone "https://github.com/${GH_REPOSITORY}.wiki.git" wiki
|
git clone https://github.com/${{ github.repository }}.wiki.git wiki
|
||||||
|
|
||||||
- name: Sync wiki content
|
- name: Sync wiki content
|
||||||
env:
|
env:
|
||||||
GH_ACTOR: ${{ github.actor }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
GH_REPOSITORY: ${{ github.repository }}
|
GITHUB_ACTOR: ${{ github.actor }}
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_REPOSITORY: ${{ github.repository }}
|
||||||
run: |
|
run: |
|
||||||
# Remove all files from wiki repository except .git
|
# Remove all files from wiki repository except .git
|
||||||
find wiki -mindepth 1 -maxdepth 1 -not -name '.git' -exec rm -rf {} \;
|
find wiki -mindepth 1 -maxdepth 1 -not -name '.git' -exec rm -rf {} \;
|
||||||
@@ -56,4 +54,4 @@ jobs:
|
|||||||
git commit -m "Sync wiki from source repository"
|
git commit -m "Sync wiki from source repository"
|
||||||
|
|
||||||
# Push changes
|
# Push changes
|
||||||
git push "https://${GH_ACTOR}:${GH_TOKEN}@github.com/${GH_REPOSITORY}.wiki.git"
|
git push https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY.wiki.git
|
||||||
|
|||||||
Reference in New Issue
Block a user