Skip to content

Commit

Permalink
print summary about captured commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ccwienk committed Dec 4, 2024
1 parent 9d35058 commit a1c9b64
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/actions/capture-commit/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 6 additions & 0 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a1c9b64

Please sign in to comment.