Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions gh-actions/common/build-debian/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,15 @@ runs:
) >> "${GITHUB_ENV}"

if git status --porcelain &>/dev/null; then
DEBFULLNAME="$(git log -1 --format='%an' HEAD) - GH Action"
DEBEMAIL="$(git log -1 --format='%ae' HEAD)"
# Strip any string in square brackets, e.g. [bot], because those
# cause lintian to complain with "malformed-contact Changed-By".
DEBFULLNAME=$(echo "${DEBFULLNAME}" | sed 's/\[[^]]*\]//g')
DEBEMAIL=$(echo "${DEBEMAIL}" | sed 's/\[[^]]*\]//g')
(
echo DEBFULLNAME="$(git log -1 --format='%an' HEAD) - GH Action"
echo DEBEMAIL="$(git log -1 --format='%ae' HEAD)"
echo "DEBFULLNAME=${DEBFULLNAME}"
echo "DEBEMAIL=${DEBEMAIL}"
) >> "${GITHUB_ENV}"
fi

Expand Down
Loading