mirror of
https://github.com/creyD/changelog_action.git
synced 2026-04-12 20:20:30 +02:00
9 lines
348 B
Bash
Executable File
9 lines
348 B
Bash
Executable File
#!/bin/bash
|
|
# e is for exiting the script automatically if a command fails, u is for exiting if a variable is not set
|
|
# x would be for showing the commands before they are executed
|
|
set -eux
|
|
|
|
cd "$$GITHUB_WORKSPACE"
|
|
CONTENT=$(git log --oneline --decorate $INPUT_BASE_REF..$INPUT_HEAD_REF --format=%B -n 1)
|
|
echo ::set-output name=changelog::$CONTENT
|