diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 89884e1..60ba929 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -49,7 +49,7 @@ jobs: run: | data=$(curl --silent --show-error --location --fail --retry 3 --header "Authorization: Bearer $GITHUB_TOKEN" --header "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/${{ github.repository }}/compare/${{ env.tag }}...${{ github.sha }}") echo "$data" - commits=$(echo "$data" | jq -r '.commits | map(".commit.message") | join( "\n\n")') + commits=$(echo "$data" | jq -r '.commits | map("* [`" + .sha[0:7] + "`](" + "https://github.com/${{ github.repository }}/commit/" + .sha + ") - " + .commit.message + " by " + .commit.committer.name + " at " + .commit.committer.date) | join("\n\n")') prev_commit=$(echo "$data" | jq -r '.base_commit.sha' | cut -c -7) current_commit=$(echo "${{ github.sha }}" | cut -c -7) echo "notes=$commits" >> $GITHUB_ENV @@ -66,6 +66,7 @@ jobs: release_name: Release ${{ env.version }} body: | Release based on commit ${{ github.sha }} + Changes: ${{ env.notes }}