changeset 98:a1a7522036f3

only execute github action from the expected mirror repo
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 10 Aug 2026 10:17:54 +0200
parents 4bcab289deb6
children c7eb4c0479bf
files .github/workflows/mirror.yml
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/.github/workflows/mirror.yml	Sat Aug 08 13:55:07 2026 +0200
+++ b/.github/workflows/mirror.yml	Mon Aug 10 10:17:54 2026 +0200
@@ -2,7 +2,7 @@
 
 env:
   HG_SOURCE_URL: https://orthanc.uclouvain.be/hg/orthanc-education/
-  GITHUB_TARGET: jodogne/mirror-orthanc-education.git
+  GITHUB_TARGET: jodogne/mirror-orthanc-education
   FAST_EXPORT_VERSION: fast-export-260405
 
 on:
@@ -19,6 +19,7 @@
 
 jobs:
   mirror:
+    if: ${{ github.repository == 'jodogne/mirror-orthanc-education' }}
     runs-on: ubuntu-slim
     steps:
       - name: Install Mercurial and fast-export