Skip to content

Commit

Permalink
skip manifest checker
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Henderson committed Sep 26, 2024
1 parent 1d26a71 commit d56db42
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions .github/workflows/dotnet-build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,33 +118,33 @@ jobs:
Compress-Archive -Path $sourcePath -DestinationPath $zipPath -Force -Verbose
}
- name: Check for manifest in zip files
if: success() && env.CREATE_RELEASE == 'True' && inputs.integration_type == 'orchestrator'
shell: pwsh
run: |
$zipFiles = Get-ChildItem -Path "${{ github.workspace }}\zip\Keyfactor" -Filter '*.zip'
foreach ($zipFile in $zipFiles) {
$zipPath = $zipFile.FullName
Write-Host "Checking manifest.json in $zipPath"
# - name: Check for manifest in zip files
# if: success() && env.CREATE_RELEASE == 'True' && inputs.integration_type == 'orchestrator'
# shell: pwsh
# run: |
# $zipFiles = Get-ChildItem -Path "${{ github.workspace }}\zip\Keyfactor" -Filter '*.zip'
# foreach ($zipFile in $zipFiles) {
# $zipPath = $zipFile.FullName
# Write-Host "Checking manifest.json in $zipPath"

# Extract the list of files in the zip to check for manifest.json
$zipContent = [System.IO.Compression.ZipFile]::OpenRead($zipPath)
$manifestExists = $false
foreach ($entry in $zipContent.Entries) {
if ($entry.FullName -eq "manifest.json") {
$manifestExists = $true
break
}
}
$zipContent.Dispose()

if (-not $manifestExists) {
Write-Host "manifest.json not found in $zipPath"
exit 1
} else {
Write-Host "manifest.json found in $zipPath"
}
}
# # Extract the list of files in the zip to check for manifest.json
# $zipContent = [System.IO.Compression.ZipFile]::OpenRead($zipPath)
# $manifestExists = $false
# foreach ($entry in $zipContent.Entries) {
# if ($entry.FullName -eq "manifest.json") {
# $manifestExists = $true
# break
# }
# }
# $zipContent.Dispose()

# if (-not $manifestExists) {
# Write-Host "manifest.json not found in $zipPath"
# exit 1
# } else {
# Write-Host "manifest.json found in $zipPath"
# }
# }

- name: Upload Release Assets
if: success() && env.CREATE_RELEASE == 'True'
Expand Down

0 comments on commit d56db42

Please sign in to comment.