Skip to content

Commit 44d7056

Browse files
noor1027ryan-morosa
authored andcommitted
Noor1027/bb2 4816 release notes missing last commit (#1616)
* Bug fix publish-release.yml always drops the oldest commit from release notes * temp change to run GHA * Revert "temp change to run GHA" This reverts commit dae8864.
1 parent c444fa8 commit 44d7056

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/publish-release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
with:
1919
fetch-depth: 0
2020
fetch-tags: true
21+
ref: ${{ github.ref }}
2122

2223
- name: Verify on master branch
2324
run: |
@@ -70,7 +71,7 @@ jobs:
7071
BODY="${NEW_TAG} - ${RELEASE_DATE}"
7172
BODY="${BODY}\n================"
7273
73-
while IFS= read -r line; do
74+
while IFS= read -r line || [[ -n "$line" ]]; do
7475
HASH=$(echo "$line" | cut -d' ' -f1)
7576
SUBJECT=$(echo "$line" | cut -d' ' -f2-)
7677
@@ -85,7 +86,7 @@ jobs:
8586
BODY="${BODY}\n- ${SUBJECT}"
8687
fi
8788
fi
88-
done < <(git log --pretty=format:'%H %s' ${PREV_TAG}..HEAD)
89+
done < <(git log --pretty=tformat:'%H %s' ${PREV_TAG}..HEAD)
8990
9091
echo -e "$BODY" > /tmp/release_notes.md
9192

0 commit comments

Comments
 (0)