changeset 2276:9a4ae2261ede

only execute github action from the expected mirror repo
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 10 Aug 2026 10:28:49 +0200
parents 648283026697
children 060c121b4946
files .github/workflows/mirror.yml OrthancStone/Sources/Toolbox/GeometryToolbox.h
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/.github/workflows/mirror.yml	Fri Aug 07 09:07:56 2026 +0200
+++ b/.github/workflows/mirror.yml	Mon Aug 10 10:28:49 2026 +0200
@@ -2,7 +2,7 @@
 
 env:
   HG_SOURCE_URL: https://orthanc.uclouvain.be/hg/orthanc-stone/
-  GITHUB_TARGET: jodogne/mirror-orthanc-stone.git
+  GITHUB_TARGET: jodogne/mirror-orthanc-stone
   FAST_EXPORT_VERSION: fast-export-260405
 
 on:
@@ -19,6 +19,7 @@
 
 jobs:
   mirror:
+    if: ${{ github.repository == 'jodogne/mirror-orthanc-stone' }}
     runs-on: ubuntu-slim
     steps:
       - name: Install Mercurial and fast-export
--- a/OrthancStone/Sources/Toolbox/GeometryToolbox.h	Fri Aug 07 09:07:56 2026 +0200
+++ b/OrthancStone/Sources/Toolbox/GeometryToolbox.h	Mon Aug 10 10:28:49 2026 +0200
@@ -171,7 +171,7 @@
   // This function only works within the unit square
   assert(x >= 0 && y >= 0 && x <= 1 && y <= 1);
 
-  // https://en.wikipedia.org/wiki/Bilinear_interpolation#Unit_square
+  // https://en.wikipedia.org/wiki/Bilinear_interpolation#On_the_unit_square
   return (f00 * (1.0f - x) * (1.0f - y) +
           f01 * x * (1.0f - y) +
           f10 * (1.0f - x) * y +