diff --git a/.github/workflows/versioning.yml b/.github/workflows/versioning.yml index bf138c43..62a03c07 100644 --- a/.github/workflows/versioning.yml +++ b/.github/workflows/versioning.yml @@ -19,7 +19,7 @@ jobs: timeout-minutes: 90 steps: - name: Run ci-versioning - uses: BuroHappoldEngineeringAdmin/CI_Toolkit/.github/actions/ci-versioning@develop + uses: BuroHappoldEngineeringAdmin/CI_Toolkit/.github/actions/ci-versioning@fix/recapture-on-cache-hit with: app_id: ${{ secrets.BHOM_APP_ID }} private_key: ${{ secrets.BHOM_APP_PRIVATE_KEY }} diff --git a/File_Engine/Compute/NewFilenameIfExists.cs b/File_Engine/Compute/NewFilenameIfExists.cs index d5000f25..141cffec 100644 --- a/File_Engine/Compute/NewFilenameIfExists.cs +++ b/File_Engine/Compute/NewFilenameIfExists.cs @@ -22,6 +22,7 @@ using System; using System.Collections.Generic; +using BH.oM.Base.Attributes; using System.ComponentModel; using System.IO; using System.Linq; @@ -34,7 +35,8 @@ public static partial class Compute { [Description("If the targetPath points to a file that exists, return the same filepath with appended `- Copy (i)`, " + "where `i` is the first index pointing to a non existing file.")] - public static string NewFilenameIfExists(string targetPath) + [PreviousVersion("9.3", "BH.Engine.Adapters.File.Compute.NewFilenameIfExists(System.String)")] + public static string NewFilenameIfExists(string targetPath, bool skipTrailingNumber = false) { int i = 0; do