mirror of
https://github.com/greenshot/greenshot
synced 2025-07-06 04:52:16 -07:00
fixed branch changes
This commit is contained in:
parent
cac566c70a
commit
262307e61e
2 changed files with 3 additions and 3 deletions
2
.github/workflows/update-gh-pages.yml
vendored
2
.github/workflows/update-gh-pages.yml
vendored
|
@ -13,6 +13,6 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
curl -X POST \
|
curl -X POST \
|
||||||
-H "Authorization: Bearer ${{ secrets.GH_PAT_JKL }}" \
|
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
|
||||||
-H "Accept: application/vnd.github+json" \
|
-H "Accept: application/vnd.github+json" \
|
||||||
https://api.github.com/repos/${{ github.repository }}/pages/builds
|
https://api.github.com/repos/${{ github.repository }}/pages/builds
|
||||||
|
|
|
@ -87,7 +87,7 @@ $ReleaseData = @{
|
||||||
generate_release_notes = $true
|
generate_release_notes = $true
|
||||||
}
|
}
|
||||||
$ReleaseResponse = Invoke-RestMethod `
|
$ReleaseResponse = Invoke-RestMethod `
|
||||||
-Uri "https://api.github.com/repos/jklingen/greenshot/releases" `
|
-Uri "https://api.github.com/repos/greenshot/greenshot/releases" `
|
||||||
-Method POST `
|
-Method POST `
|
||||||
-Headers $Headers `
|
-Headers $Headers `
|
||||||
-Body (ConvertTo-Json $ReleaseData -Depth 10)
|
-Body (ConvertTo-Json $ReleaseData -Depth 10)
|
||||||
|
@ -138,7 +138,7 @@ Write-Host "File uploaded successfully: $FileName"
|
||||||
# Step 7: Trigger GitHub Pages Rebuild
|
# Step 7: Trigger GitHub Pages Rebuild
|
||||||
#Write-Host "Triggering GitHub Pages rebuild..."
|
#Write-Host "Triggering GitHub Pages rebuild..."
|
||||||
#Invoke-RestMethod `
|
#Invoke-RestMethod `
|
||||||
# -Uri "https://api.github.com/repos/jklingen/greenshot/pages/builds" `
|
# -Uri "https://api.github.com/repos/greenshot/greenshot/pages/builds" `
|
||||||
# -Method POST `
|
# -Method POST `
|
||||||
# -Headers $Headers
|
# -Headers $Headers
|
||||||
#if ($LASTEXITCODE -ne 0) {
|
#if ($LASTEXITCODE -ne 0) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue