From 425d505e47ea305ec2a7e536e6fbcb71fc41da45 Mon Sep 17 00:00:00 2001 From: Lifailon Date: Tue, 16 Sep 2025 06:54:18 +0300 Subject: [PATCH] fix push on wiki --- .github/workflows/merge-coverage.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/merge-coverage.yml b/.github/workflows/merge-coverage.yml index 66de276..5d80587 100644 --- a/.github/workflows/merge-coverage.yml +++ b/.github/workflows/merge-coverage.yml @@ -366,27 +366,27 @@ jobs: name: all-report path: all-report.md - - name: Clone Wiki - if: ${{ github.event.inputs.Markdown == 'true' }} - run: git clone https://github.com/Lifailon/lazyjournal wiki - - name: Update markdown report on Wiki if: ${{ github.event.inputs.Markdown == 'true' }} run: | + cd .. + git clone https://github.com/Lifailon/lazyjournal wiki echo -e '# Coverage report\n' > wiki/home.md echo -e 'The test coverage report in `html` format using [go-coverage-report](https://github.com/marketplace/actions/go-coverage-report) is available [here](https://raw.githubusercontent.com/wiki/Lifailon/lazyjournal/coverage.html).\n' >> wiki/home.md echo -e 'During testing, the interface operation is checked in the disabled `tcell` mode, as well as the reading and coloring time of all available logs in Linux, macOS and Windows systems.\n' >> wiki/home.md echo -e 'To combine test results from different systems [gosovmerge](https://github.com/wadey/gocovmerge) is used.\n' >> wiki/home.md echo -e '# Coverage history\n' >> wiki/home.md echo -e '![](https://raw.githubusercontent.com/wiki/Lifailon/lazyjournal/coverage-chart.svg)\n' >> wiki/home.md - cat all-report.md >> wiki/home.md + cat lazyjournal/all-report.md >> wiki/home.md cd wiki git config --global user.name 'GitHub Actions' git config --global user.email 'actions@github.com' git add home.md if ! git diff --staged --quiet; then git commit -m "update markdown report" - git push --force 2> /dev/null || git push origin master + git push origin master 2> /dev/null || + git push --force origin master 2> /dev/null || + git push --force https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/Lifailon/lazyjournal.wiki.git master else echo "No changes to commit" fi \ No newline at end of file