-
-
Notifications
You must be signed in to change notification settings - Fork 388
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Update GitHub Registry badge action
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 [email protected] | ||
git commit -m 'Update GitHub Registry badge' | ||
|