diff --git a/.github/workflows/check-upstream.main.kts b/.github/workflows/check-upstream.main.kts index e064d5ad1..7818d126b 100755 --- a/.github/workflows/check-upstream.main.kts +++ b/.github/workflows/check-upstream.main.kts @@ -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 "${'$'}(cat number-of-commits.txt)" > badge.svg - """.trimIndent() + echo "${'$'}(cat number-of-commits.txt)" > badge.svg + """.trimIndent(), + ) + run( + name = "Preview badge", + command = "cat badge.svg", ) - run(command = "cat badge.svg") } } diff --git a/.github/workflows/check-upstream.yaml b/.github/workflows/check-upstream.yaml index 037abf925..9dbcbc581 100644 --- a/.github/workflows/check-upstream.yaml +++ b/.github/workflows/check-upstream.yaml @@ -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 "$(cat number-of-commits.txt)" > badge.svg' + run: 'echo "$(cat number-of-commits.txt)" > badge.svg' - id: 'step-3' + name: 'Preview badge' run: 'cat badge.svg'