Skip to content

Commit bed1e8a

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

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/nightly.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,12 @@ jobs:
112112
NIGHTLY_VERSION="${NEXT_PATCH_VERSION}-${COMMIT_COUNT}-${SHORT_SHA}"
113113
echo "Setting version to ${NIGHTLY_VERSION}"
114114
115+
# Print badge to GitHub Actions summary
116+
echo "### Nightly Build Version" >> $GITHUB_STEP_SUMMARY
117+
# Replace dashes with double dashes for shields.io
118+
NIGHTLY_VERSION_BADGE=${NIGHTLY_VERSION//-/--}
119+
echo "![Nightly Version](https://img.shields.io/badge/nightly--version-${NIGHTLY_VERSION_BADGE}-blue)" >> $GITHUB_STEP_SUMMARY
120+
115121
# Update package.json
116122
npm version "${NIGHTLY_VERSION}" --no-git-tag-version
117123

0 commit comments

Comments
 (0)