From 1a4aa28c17caa39b907cdc5a1622e3e7ecc0434a Mon Sep 17 00:00:00 2001 From: Piotr Krzeminski Date: Fri, 8 Nov 2024 11:35:11 +0100 Subject: [PATCH] Put link to BitBucket at the beginning --- .github/workflows/check-upstream.main.kts | 5 ++++- .github/workflows/check-upstream.yaml | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check-upstream.main.kts b/.github/workflows/check-upstream.main.kts index c02713c61..f968869ed 100755 --- a/.github/workflows/check-upstream.main.kts +++ b/.github/workflows/check-upstream.main.kts @@ -37,7 +37,10 @@ workflow( git clone --branch master --single-branch https://bitbucket.org/snakeyaml/snakeyaml-engine.git 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 + UPSTREAM_COMMIT=$(cat ../upstream-commit.txt) + echo "See in BitBucket: https://bitbucket.org/snakeyaml/snakeyaml-engine/branches/compare/master..${'$'}UPSTREAM_COMMIT" > ../$logDiffBetweenRepos + echo "" >> ../$logDiffBetweenRepos + git log --oneline ${'$'}UPSTREAM_COMMIT..master >> ../$logDiffBetweenRepos cat ../$logDiffBetweenRepos | wc -l > ../$numberOfCommitsFileName """.trimIndent(), ) diff --git a/.github/workflows/check-upstream.yaml b/.github/workflows/check-upstream.yaml index 58bc908b6..4c9fddef4 100644 --- a/.github/workflows/check-upstream.yaml +++ b/.github/workflows/check-upstream.yaml @@ -39,7 +39,10 @@ jobs: git clone --branch master --single-branch https://bitbucket.org/snakeyaml/snakeyaml-engine.git 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 + UPSTREAM_COMMIT=$(cat ../upstream-commit.txt) + echo "See in BitBucket: https://bitbucket.org/snakeyaml/snakeyaml-engine/branches/compare/master..$UPSTREAM_COMMIT" > ../log-diff-between-repos.txt + echo "" >> ../log-diff-between-repos.txt + git log --oneline $UPSTREAM_COMMIT..master >> ../log-diff-between-repos.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'