Skip to content

Commit f2be803

Browse files
committed
Update SophiApp.yml
1 parent 127355f commit f2be803

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.github/workflows/SophiApp.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,10 @@ jobs:
9494
# No need to replace special characters with percent-encoding ones
9595
$Parameters = @{
9696
Uri = "https://api.github.com/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/jobs"
97-
Method = "Head"
9897
UseBasicParsing = $true
9998
Verbose = $true
10099
}
101-
(Invoke-WebRequest @Parameters).jobs
102-
#$html_url = ((Invoke-WebRequest @Parameters).jobs | Where-Object -FilterScript {$_.run_id -eq "${{ github.run_id }}"}).html_url
103-
(Invoke-WebRequest @Parameters).jobs
100+
$html_url = ((Invoke-RestMethod @Parameters).jobs | Where-Object -FilterScript {$_.run_id -eq "${{ github.run_id }}"}).html_url
104101
105102
(Get-Content -Path ReleaseNotesTemplate.md -Encoding utf8 -Raw).Replace("NewVersion", "${{ github.ref_name }}").Replace("OldVersion", $Penultimate).Replace("CurrentDate", $(Get-Date -f "dd.MM.yyyy")).Replace("html_url", $html_url).Replace("SHA256_hash", "${{ steps.zip_hash.outputs.zip_hash }}") | Set-Content -Path ReleaseNotesTemplate.md -Encoding UTF8
106103

0 commit comments

Comments
 (0)