diff --git a/.github/workflows/after-signature.yml b/.github/workflows/after-signature.yml index 04998eb..8c523da 100644 --- a/.github/workflows/after-signature.yml +++ b/.github/workflows/after-signature.yml @@ -85,8 +85,10 @@ jobs: # Update sha512 hash and remove size attribute in latest.yml (Get-Content -Path latest.yml) | ForEach-Object { - if ($_ -match '^\s*sha512:\s.*$') { + if ($_ -match '^sha512:\s.*$') { "sha512: ${{ steps.compute_hash.outputs.sha512 }}" + elseif ($_ -match '^\s*sha512:\s.*$') { + "sha512: ${{ steps.compute_hash.outputs.sha512 }}" } elseif ($_ -notmatch '^size:\s.*$') { $_ }