From 66ea47792b9f5ee816fdb3445e23dfd278aa69c3 Mon Sep 17 00:00:00 2001 From: Piotr Krzeminski Date: Fri, 8 Nov 2024 08:41:08 +0100 Subject: [PATCH] Fix counter and add link --- .github/workflows/check-upstream.main.kts | 2 +- .github/workflows/check-upstream.yaml | 2 +- README.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/check-upstream.main.kts b/.github/workflows/check-upstream.main.kts index 04ac95dfd..c02713c61 100755 --- a/.github/workflows/check-upstream.main.kts +++ b/.github/workflows/check-upstream.main.kts @@ -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( diff --git a/.github/workflows/check-upstream.yaml b/.github/workflows/check-upstream.yaml index d378fc472..58bc908b6 100644 --- a/.github/workflows/check-upstream.yaml +++ b/.github/workflows/check-upstream.yaml @@ -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' diff --git a/README.md b/README.md index 448a75680..b0c324cbf 100644 --- a/README.md +++ b/README.md @@ -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