[LTP] [PATCH 1/1] ci: Don't run wiki mirror on LTP forks

Petr Vorel pvorel@suse.cz
Wed Dec 15 11:16:42 CET 2021


Forks obviously don't have rights to push to official wiki:
remote: Permission to linux-test-project/ltp.wiki.git denied to github-actions[bot].
fatal: unable to access 'https://github.com/linux-test-project/ltp.wiki/':
The requested URL returned error: 403

Although script could be easily modified to mirror fork's wiki, IMHO we
don't want to have duplicate wiki content all over github (currently
there are 811 LTP forks).

Fixes: 43316ef67a ("github: Add action to update wiki")

Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
Hi,

I'm sorry for not realizing this before.
Tested on my fork: https://github.com/pevik/ltp/actions/runs/1582082773

Kind regards,
Petr

 .github/workflows/wiki-mirror.yml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.github/workflows/wiki-mirror.yml b/.github/workflows/wiki-mirror.yml
index 44a3e9ed7e..d138f8f226 100644
--- a/.github/workflows/wiki-mirror.yml
+++ b/.github/workflows/wiki-mirror.yml
@@ -13,6 +13,7 @@ on:
 jobs:
   mirror:
     runs-on: ubuntu-latest
+    if: ${{ github.event.pull_request.head.repo.full_name == 'linux-test-project/ltp' }}
     steps:
       - name: Checkout LTP
         uses: actions/checkout@v2
-- 
2.34.1



More information about the ltp mailing list