Skip to content

Commit

Permalink
Fix counter and add link
Browse files Browse the repository at this point in the history
  • Loading branch information
krzema12 committed Nov 8, 2024
1 parent 4f470ac commit 66ea477
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-upstream.main.kts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ workflow(
wget https://raw.githubusercontent.com/krzema12/snakeyaml-engine-kmp/${'$'}{{ github.ref }}/upstream-commit.txt
cd snakeyaml-engine
git log --oneline ${'$'}(cat ../upstream-commit.txt)..master > ../$logDiffBetweenRepos
cat $logDiffBetweenRepos | wc -l > ../$numberOfCommitsFileName
cat ../$logDiffBetweenRepos | wc -l > ../$numberOfCommitsFileName
""".trimIndent(),
)
run(
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-upstream.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
wget https://raw.githubusercontent.com/krzema12/snakeyaml-engine-kmp/${{ github.ref }}/upstream-commit.txt
cd snakeyaml-engine
git log --oneline $(cat ../upstream-commit.txt)..master > ../log-diff-between-repos.txt
cat log-diff-between-repos.txt | wc -l > ../number-of-commits.txt
cat ../log-diff-between-repos.txt | wc -l > ../number-of-commits.txt
- id: 'step-2'
name: 'Create an SVG with the number of commits'
run: 'wget -O commits-to-upstream-badge.svg https://img.shields.io/badge/To%20upstream-$(cat number-of-commits.txt)-blue'
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[![Maven Central Version](https://maven-badges.herokuapp.com/maven-central/it.krzeminski/snakeyaml-engine-kmp/badge.svg)](https://maven-badges.herokuapp.com/maven-central/it.krzeminski/snakeyaml-engine-kmp)
![Commits to upstream](https://raw.githubusercontent.com/krzema12/snakeyaml-engine-kmp/refs/heads/commits-to-upstream-badge/commits-to-upstream-badge.svg)
[![Commits to upstream](https://raw.githubusercontent.com/krzema12/snakeyaml-engine-kmp/refs/heads/commits-to-upstream-badge/commits-to-upstream-badge.svg)](https://raw.githubusercontent.com/krzema12/snakeyaml-engine-kmp/refs/heads/commits-to-upstream-badge/log-diff-between-repos.txt)

# SnakeYAML Engine KMP

Expand Down

0 comments on commit 66ea477

Please sign in to comment.