Skip to content

Commit cfe2658

Browse files
committed
Show nightly version in Github Sumamry
1 parent b7622ea commit cfe2658

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/nightly.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,11 @@ jobs:
111111
# Create nightly version: 1.64.2-12-abc1234
112112
NIGHTLY_VERSION="${NEXT_PATCH_VERSION}-${COMMIT_COUNT}-${SHORT_SHA}"
113113
echo "Setting version to ${NIGHTLY_VERSION}"
114+
# Print badge to GitHub Actions summary
115+
echo "### Nightly Build Version" >> $GITHUB_STEP_SUMMARY
116+
# URL-encode dashes for shields.io
117+
NIGHTLY_VERSION_BADGE=${NIGHTLY_VERSION//-/%2D}
118+
echo "![Nightly Version](https://img.shields.io/badge/nightly--version-${NIGHTLY_VERSION_BADGE}-blue)" >> $GITHUB_STEP_SUMMARY
114119
115120
# Update package.json
116121
npm version "${NIGHTLY_VERSION}" --no-git-tag-version

0 commit comments

Comments
 (0)