changeset 329:abaaac21aac5

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