Skip to content

Commit

Permalink
Put link to BitBucket at the beginning
Browse files Browse the repository at this point in the history
  • Loading branch information
krzema12 committed Nov 8, 2024
1 parent 66ea477 commit 1a4aa28
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/check-upstream.main.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
)
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/check-upstream.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 1a4aa28

Please sign in to comment.