Fix metadata loading bug and add multimedia editor embedding #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Check Archived Scripts | |
| on: | |
| pull_request: | |
| push: | |
| jobs: | |
| verify-archive: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Verify archived copies exist | |
| shell: pwsh | |
| run: | | |
| $repo = (Get-Location).ProviderPath | |
| $psFiles = Get-ChildItem -Path $repo -Filter '*.ps1' -Recurse | Where-Object { $_.FullName -notmatch '\\ArchivedScripts\\' } | |
| $missing = @() | |
| foreach ($f in $psFiles) { | |
| $rel = $f.FullName.Substring($repo.Length).TrimStart('\\','/') | |
| $archPath = Join-Path $repo 'ArchivedScripts' | |
| $candidate = Join-Path $archPath $rel | |
| if (-not (Test-Path $candidate)) { $missing += $rel } | |
| } | |
| if ($missing.Count -gt 0) { | |
| Write-Error "Missing archived copies for the following .ps1 files:`n$($missing -join "`n")" | |
| exit 1 | |
| } else { Write-Output "All .ps1 files have archived copies in ArchivedScripts/" } |