Skip to content

Commit 2e63ba6

Browse files
committed
Add Badge Updater For Private
Signed-off-by: Stephen Williams <stephenw@mindpointgroup.com>
1 parent 231fdc0 commit 2e63ba6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/export-badges-private.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ jobs:
105105
106106
echo "Syncing badge files with rsync (only updated ones will be copied)..."
107107
if [ -d "output/badges/${{ inputs.repo_name }}" ]; then
108-
rsync -a --delete --checksum --itemize-changes output/badges/${{ inputs.repo_name }}/ target/badges/${{ inputs.repo_name }}/ | tee sync_log.txt
108+
repo_short=$(basename "${{ inputs.repo_name }}")
109+
rsync -a --delete --checksum output/badges/$repo_short/ target/badges/$repo_short/ | tee sync_log.txt
109110
else
110111
echo "Warning: No badge output found in output/badges/${{ inputs.repo_name }}"
111112
fi

0 commit comments

Comments
 (0)