public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH 1/1] ci: Don't run wiki mirror on LTP forks
@ 2021-12-15 10:16 Petr Vorel
  2021-12-15 10:28 ` Cyril Hrubis
  0 siblings, 1 reply; 3+ messages in thread
From: Petr Vorel @ 2021-12-15 10:16 UTC (permalink / raw)
  To: ltp

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


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-12-15 11:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-15 10:16 [LTP] [PATCH 1/1] ci: Don't run wiki mirror on LTP forks Petr Vorel
2021-12-15 10:28 ` Cyril Hrubis
2021-12-15 11:44   ` Petr Vorel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox