Skip to content
Closed
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
15 changes: 13 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,20 @@ runs:
) >> "${GITHUB_ENV}"

if git status --porcelain &>/dev/null; then
_author_name="$(git log -1 --format='%an' HEAD)"
_author_email="$(git log -1 --format='%ae' HEAD)"

# Dependabot commits use the name dependabot[bot]
# and email "49699333+dependabot[bot]@users.noreply.github.com".
# These cause lintian errors.
if [[ "${_author_name}" == "dependabot[bot]" && "${_author_email}" == "49699333+dependabot[bot]@users.noreply.github.com" ]]; then
_author_name="dependabot"
_author_email="support@github.com"
fi

(
echo DEBFULLNAME="$(git log -1 --format='%an' HEAD) - GH Action"
echo DEBEMAIL="$(git log -1 --format='%ae' HEAD)"
echo DEBFULLNAME="${_author_name} - GH Action"
echo DEBEMAIL="${_author_email}"
) >> "${GITHUB_ENV}"
fi

Expand Down
Loading