Public/Update-CCReleaseWorkflow.ps1

function Update-CCReleaseWorkflow {
    <#
    .SYNOPSIS
        Re-syncs the CodeCompass-managed workflow files to the current templates.
    .DESCRIPTION
        Overwrites a managed workflow only if it is unchanged since CodeCompass wrote it;
        user-edited workflows are left untouched (reported as SkippedUserModified) unless -Force.
        Supports -WhatIf.
    .EXAMPLE
        Update-CCReleaseWorkflow -Path .
    .EXAMPLE
        Update-CCReleaseWorkflow -Path . -Force
    #>

    [CmdletBinding(SupportsShouldProcess)]
    [OutputType([pscustomobject])]
    param(
        [Parameter(Position = 0)]
        [string]$Path = '.',

        [switch]$Force
    )

    Invoke-CCWorkflowSync -Path $Path -Force:$Force -Cmdlet $PSCmdlet
}