diff --git a/.github/workflows/versioning.yml b/.github/workflows/versioning.yml index bf138c43..4960da3a 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/ci-versioning-upgrade-recapture 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..cee32640 100644 --- a/File_Engine/Compute/NewFilenameIfExists.cs +++ b/File_Engine/Compute/NewFilenameIfExists.cs @@ -34,7 +34,7 @@ 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) + public static string NewFilenameIfExists(string targetPath, bool skipTrailingNumber = false) { int i = 0; do