Skip to content

Commit

Permalink
Update publish-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ModEngineer committed Apr 14, 2022
1 parent afcf5e1 commit abca6e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ jobs:
if (releaseListResponse.data[0].target_commitish.match(/[0-9a-f]{40}/i)) {
const hashes = child_process.execSync(`git log --pretty='format:%H' ...${releaseListResponse.data[0].target_commitish}`, {cwd: process.env.GITHUB_WORKSPACE}).toString().split('\n')
console.log(hashes)
if (hashes.length > 0) {
if (hashes != [""]) {
textBody += " Commit messages and descriptions since the last release are shown below:"
for (const hash in hashes) {
for (const hash of hashes) {
textBody += '\n- ' + child_process.execSync(`git log --pretty='format:%s' -n 1 ${hash}`, {cwd: process.env.GITHUB_WORKSPACE}).toString()
let commitBodyLines = child_process.execSync(`git log --pretty='format:%b' -n 1 ${hash}`, {cwd: process.env.GITHUB_WORKSPACE}).toString()
for (const line in commitBodyLines) {
for (const line of commitBodyLines) {
textBody += '\n ' + line
}
}
Expand Down

0 comments on commit abca6e1

Please sign in to comment.