diff --git a/src/Generate-DockerImageVariantsHelpers/public/Automerge-DockerImageVariantsPR.ps1 b/src/Generate-DockerImageVariantsHelpers/public/Automerge-DockerImageVariantsPR.ps1 index 4bd3f7d..b268161 100644 --- a/src/Generate-DockerImageVariantsHelpers/public/Automerge-DockerImageVariantsPR.ps1 +++ b/src/Generate-DockerImageVariantsHelpers/public/Automerge-DockerImageVariantsPR.ps1 @@ -17,6 +17,7 @@ function Automerge-DockerImageVariantsPR { 'Accept' = 'application/vnd.github+json' 'Authorization' = "Bearer $env:GITHUB_TOKEN" 'X-GitHub-Api-Version' = '2022-11-28' + 'Content-Type' = 'application/json' } "Will automerge PR" | Write-Host if (!$WhatIfPreference) { diff --git a/src/Generate-DockerImageVariantsHelpers/public/New-Release.ps1 b/src/Generate-DockerImageVariantsHelpers/public/New-Release.ps1 index 598d3c0..1f346da 100644 --- a/src/Generate-DockerImageVariantsHelpers/public/New-Release.ps1 +++ b/src/Generate-DockerImageVariantsHelpers/public/New-Release.ps1 @@ -19,6 +19,7 @@ function New-Release { 'Accept' = 'application/vnd.github+json' 'Authorization' = "Bearer $env:GITHUB_TOKEN" 'X-GitHub-Api-Version' = '2022-11-28' + 'Content-Type' = 'application/json' } $owner = ({ git remote get-url origin } | Execute-Command) -replace 'https://github.com/([^/]+)/([^/]+)', '$1' $project = ({ git remote get-url origin } | Execute-Command) -replace 'https://github.com/([^/]+)/([^/]+)', '$2' -replace '\.git$', ''