Skip to content

Commit

Permalink
(simatec) Fix sync
Browse files Browse the repository at this point in the history
  • Loading branch information
simatec committed Aug 23, 2024
1 parent 799f844 commit 571f140
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 20 deletions.
30 changes: 10 additions & 20 deletions .github/workflows/sync-readme-to-wiki.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,35 +19,25 @@ jobs:
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global credential.helper store
- name: Clone wiki repository
run: |
git clone https://github.com/${{ github.repository }}.wiki.git ./wiki
- name: Configure git remote with token
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd wiki
git remote set-url origin https://${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.wiki.git
git clone https://${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.wiki.git ./wiki
- name: Copy files to Wiki
- name: Copy README.md to Wiki
run: |
cp docs/de/backitup.md ./wiki/ioBroker.backitup-Wiki-Deutsch.md
cp docs/en/backitup.md ./wiki/ioBroker.backitup-Wiki-English.md
cp -r docs/de/img ./wiki/
cp docs/en/img/* ./wiki/img/
#- name: Commit and push changes
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#run: |
# cd wiki
#git add .
#git commit -m "Sync documentation to Wiki"
#git push
- name: Debug Git Remote
- name: Commit and push changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd wiki
git remote -v
git config --get remote.origin.url
GIT_TRACE=1 GIT_CURL_VERBOSE=1 git push
git add .
git commit -m "Sync README.md to Wiki"
git push https://[email protected]/${{ github.repository }}.wiki.git
1 change: 1 addition & 0 deletions docs/de/backitup.md
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,7 @@ Des Weiteren ist für den Restore von einer InfluxDB 2.x Datenbank der Operator-
> Ohne den richtigen Operator-Token ist kein Restore möglich.


_[Zurück zum Anfang](#dokumentation-und-anleitung-für-iobrokerbackitup)_

---
Expand Down

0 comments on commit 571f140

Please sign in to comment.