1
0
forked from baron/baron-sso

fix: preserve published badge state

This commit is contained in:
2026-06-01 11:35:00 +09:00
parent 4a1e89e421
commit 6574fb54b9
5 changed files with 153 additions and 2 deletions

View File

@@ -1796,6 +1796,19 @@ jobs:
name: orgfront-vitest-coverage-report
path: badge-artifacts/orgfront
- name: Restore published badge state
run: |
git fetch origin "+refs/heads/badges:refs/remotes/origin/badges" || true
if git show-ref --verify --quiet refs/remotes/origin/badges && \
git cat-file -e refs/remotes/origin/badges:latest/badges.json 2>/dev/null; then
mkdir -p docs/badges
git archive --format=tar refs/remotes/origin/badges latest | tar -x
cp latest/* docs/badges/
rm -rf latest
else
echo "No published badge state found."
fi
- name: Update badge files
env:
LINT_RESULT: ${{ needs.lint.result }}