mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-07-13 22:36:32 +00:00
Use git log
as of the body for the GH release.
There is no need to prepend any other info to the release body. Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
parent
d7f4d0c18e
commit
525e688d70
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
@ -90,15 +90,21 @@ jobs:
|
|||||||
|
|
||||||
- name: Generate Changelog
|
- name: Generate Changelog
|
||||||
id: changelog
|
id: changelog
|
||||||
|
env:
|
||||||
|
IS_RELEASE: ${{ startsWith(github.ref, 'refs/tags/') }}
|
||||||
run: |
|
run: |
|
||||||
export LATEST_TAG=$(git describe --abbrev=0)
|
export LATEST_TAG=$(git describe --abbrev=0)
|
||||||
export GIT_LOG=$(git log --pretty=" - %s [%h]" $LATEST_TAG..HEAD | sed 's/ *$//g')
|
export GIT_LOG=$(git log --pretty=" - %s [%h]" $LATEST_TAG..HEAD | sed 's/ *$//g')
|
||||||
|
if [ "$IS_RELEASE" = true ]; then
|
||||||
|
export BODY=$(echo -e "$GIT_LOG")
|
||||||
|
else
|
||||||
export LATEST_TAG_WITH_LINK=$(echo "[$LATEST_TAG](https://github.com/arduino/arduino-pro-ide/releases/tag/$LATEST_TAG)")
|
export LATEST_TAG_WITH_LINK=$(echo "[$LATEST_TAG](https://github.com/arduino/arduino-pro-ide/releases/tag/$LATEST_TAG)")
|
||||||
if [ -z "$GIT_LOG" ]; then
|
if [ -z "$GIT_LOG" ]; then
|
||||||
export BODY="There were no changes since version $LATEST_TAG_WITH_LINK."
|
export BODY="There were no changes since version $LATEST_TAG_WITH_LINK."
|
||||||
else
|
else
|
||||||
export BODY=$(echo -e "Changes since version $LATEST_TAG_WITH_LINK:\n$GIT_LOG")
|
export BODY=$(echo -e "Changes since version $LATEST_TAG_WITH_LINK:\n$GIT_LOG")
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
echo -e "$BODY"
|
echo -e "$BODY"
|
||||||
OUTPUT_SAFE_BODY="${BODY//'%'/'%25'}"
|
OUTPUT_SAFE_BODY="${BODY//'%'/'%25'}"
|
||||||
OUTPUT_SAFE_BODY="${OUTPUT_SAFE_BODY//$'\n'/'%0A'}"
|
OUTPUT_SAFE_BODY="${OUTPUT_SAFE_BODY//$'\n'/'%0A'}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user