Skip to content

Commit

Permalink
Adjust sizes a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
krzema12 committed Oct 28, 2024
1 parent 020cb61 commit e4fcf99
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/check-upstream.main.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,17 @@ workflow(
git clone --branch master --single-branch https://bitbucket.org/snakeyaml/snakeyaml-engine.git
cd snakeyaml-engine
git log --oneline $(cat ../upstream-commit.txt)..master | wc -l > ../number-of-commits.txt
""".trimIndent()
""".trimIndent(),
)
run(
name = "Create an SVG with the number of commits",
command = """
echo "<svg viewBox=\"0 0 240 80\" xmlns=\"http://www.w3.org/2000/svg\"><text x=\"20\" y=\"35\">${'$'}(cat number-of-commits.txt)</text></svg>" > badge.svg
""".trimIndent()
echo "<svg viewBox=\"0 0 85 20\" xmlns=\"http://www.w3.org/2000/svg\"><style>.number { font: 13px sans-serif; }</style><text x=\"0\" y=\"0\" class=\"number\">${'$'}(cat number-of-commits.txt)</text></svg>" > badge.svg
""".trimIndent(),
)
run(
name = "Preview badge",
command = "cat badge.svg",
)
run(command = "cat badge.svg")
}
}
3 changes: 2 additions & 1 deletion .github/workflows/check-upstream.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
git log --oneline $(cat ../upstream-commit.txt)..master | wc -l > ../number-of-commits.txt
- id: 'step-2'
name: 'Create an SVG with the number of commits'
run: 'echo "<svg viewBox=\"0 0 240 80\" xmlns=\"http://www.w3.org/2000/svg\"><text x=\"20\" y=\"35\">$(cat number-of-commits.txt)</text></svg>" > badge.svg'
run: 'echo "<svg viewBox=\"0 0 85 20\" xmlns=\"http://www.w3.org/2000/svg\"><style>.number { font: 13px sans-serif; }</style><text x=\"0\" y=\"0\" class=\"number\">$(cat number-of-commits.txt)</text></svg>" > badge.svg'
- id: 'step-3'
name: 'Preview badge'
run: 'cat badge.svg'

0 comments on commit e4fcf99

Please sign in to comment.