Skip to content

Commit a9ef074

Browse files
committed
Update comment
1 parent f4a6e02 commit a9ef074

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/release-stage-2-alpha.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,19 @@ jobs:
6969
env:
7070
GH_TOKEN: ${{ github.token }}
7171
run: |
72-
gh pr comment ${{ github.event.pull_request.number }} --body "Alpha release created: \`${{ steps.version.outputs.version }}\`"
72+
LATEST=$(gh release list --limit 1 --json tagName --jq ".[0].tagName")
73+
echo "Latest release: $LATEST"
74+
echo "Base: ${{ github.event.pull_request.base.sha }}""
75+
COMMAND="git log --pretty=oneline ${LATEST}..${{ github.event.pull_request.base.sha }}"
76+
gh pr comment ${{ github.event.pull_request.number }} --body \
77+
"Alpha release created: \`${{ steps.version.outputs.version }}\` \
78+
\n\n \
79+
⚠️ **Note:** This release was created from the \`HEAD\` of this branch so it may \
80+
contain commits that have landed in \`dev\` but have not been released yet \
81+
depending on when this branch was created. You can run the following command \
82+
to see the commits that may not have been released yet: \
83+
\n\n \
84+
\`\`\`bash \
85+
${COMMAND} \
86+
\`\`\`"
7387
gh pr edit ${{ github.event.pull_request.number }} --remove-label ${{ github.event.label.name }}

0 commit comments

Comments
 (0)