Skip to content

Commit 0e53017

Browse files
authored
Update release-stage-2-alpha.yml
1 parent 68d32e7 commit 0e53017

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,9 @@ jobs:
6969
env:
7070
GH_TOKEN: ${{ github.token }}
7171
run: |
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 }}"
72+
LATEST_RELEASE_SHA=$(gh release list --limit 1 --json tagName --jq ".[0].tagName")
73+
BASE_SHA=$(echo ${{ github.event.pull_request.base.sha }} | cut -c1-7)
74+
COMMAND="git log --pretty=oneline ${LATEST_RELEASE_SHA}..${BASE_SHA}"
7675
echo -e \
7776
"Alpha release created: \`${{ steps.version.outputs.version }}\`\n\n\
7877
⚠️ **Note:** This release was created from the \`HEAD\` of this branch so it \

0 commit comments

Comments
 (0)