From a1c9b64c916fab84686c4c53fd9efa5cdcb35e25 Mon Sep 17 00:00:00 2001 From: Christian Cwienk Date: Mon, 2 Dec 2024 20:47:50 +0100 Subject: [PATCH] print summary about captured commit --- .github/actions/capture-commit/action.yaml | 8 ++++++++ .github/workflows/build-and-test.yaml | 6 ++++++ .github/workflows/release.yaml | 2 +- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/actions/capture-commit/action.yaml b/.github/actions/capture-commit/action.yaml index 9ac5bc5f6..a968e3be6 100644 --- a/.github/actions/capture-commit/action.yaml +++ b/.github/actions/capture-commit/action.yaml @@ -68,5 +68,13 @@ runs: echo "commit-digest=$(cat ${commit_out})" >> ${GITHUB_OUTPUT} echo "commit-objects=$(cat ${objects_out} | base64 -w0)" >> ${GITHUB_OUTPUT} + cat << EOF > ${GITHUB_STEP_SUMMARY} + ## Capture-Commit Summary + commit-digest: \`$(cat ${commit_out})\` + objects-listing (tarfile): + $(tar tf ${objects_out}) + commit-message: + $(git show) + EOF git clean -dfx shell: bash diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index bd2a2eb74..42dd63d5d 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -18,6 +18,12 @@ on: release-commit-digest: description: release-commit's digest value: ${{ jobs.version.outputs.release-commit-digest }} + effective-version: + description: effective version used during build + value: ${{ jobs.version.outputs.effective_version }} + next-version: + description: next version (for bump-commits) + value: ${{ jobs.version.outputs.next_version }} push: jobs: diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 6152cc40c..59d1ad56b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -48,7 +48,7 @@ jobs: tgt_ref="refs/tags/${effective_version}" echo "pushing release-commit ${commit_digest} to ${tgt_ref}" git push origin "@:${tgt_ref}" - next_version=${{ needs.version.outputs.next_version }} + next_version=${{ needs.build.outputs.next_version }} echo "next version: ${next_version}" git reset --hard @~ echo "${next_version}" | .ci/write-version