Skip to content

Commit

Permalink
Add Update GitHub Registry badge action
Browse files Browse the repository at this point in the history
  • Loading branch information
mlocati committed Nov 29, 2024
1 parent dd952fc commit d70af8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/update-ghcr-badge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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 [email protected]
git commit -m 'Update GitHub Registry badge'
Expand Down

0 comments on commit d70af8d

Please sign in to comment.