Add Update GitHub Registry badge action

pull/1025/head
Michele Locati 2024-11-29 12:59:44 +01:00
parent dd952fcf7d
commit d70af8dfb7
No known key found for this signature in database
GPG Key ID: 98B7CE2E7234E28B
1 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ jobs:
$response = Invoke-WebRequest -Uri https://img.shields.io/badge/GitHub_Registry_pulls-$count-066da5 -ErrorAction Stop
$newBadge = $response.Content.Trim()
Write-Host -Object "Badge source: $newBadge"
$badgePath = 'assets/ghcr-badge.svg'
$badgePath = 'resources/ghcr-badge.svg'
$badgeUpdated = $true
if (Test-Path -LiteralPath $badgePath -PathType Leaf) {
$oldBadge = (Get-Content -LiteralPath $badgePath -Encoding utf8 -Raw).Trim()
@ -50,7 +50,7 @@ jobs:
name: Commit
if: steps.build-badge.outputs.updated == 'yes'
run: |
git add assets/ghcr-badge.svg
git add resources/ghcr-badge.svg
git config user.name GitHub
git config user.email noreply@github.com
git commit -m 'Update GitHub Registry badge'