@@ -44,13 +44,17 @@ if [[ -z "${TRAVIS_BUILD_DIR}" ]]; then
44
44
export BUILD_DIR=${GITHUB_WORKSPACE}
45
45
export AUTH=${GITHUB_ACTOR} :${GH_REPO_TOKEN}
46
46
export REPO_SLUG=${GITHUB_REPOSITORY}
47
+ export COMMIT_SHA1=${GITHUB_SHA}
48
+ export BUILD_ID=" GitHub Actions run: ${GITHUB_RUN_ID} "
47
49
if [ " $GITHUB_EVENT_NAME " == " pull_request" ]; then
48
50
export IS_PULL=1
49
51
fi
50
52
else
51
53
export BUILD_DIR=${TRAVIS_BUILD_DIR}
52
54
export AUTH=${GH_REPO_TOKEN}
53
55
export REPO_SLUG=${TRAVIS_REPO_SLUG}
56
+ export COMMIT_SHA1=${TRAVIS_COMMIT}
57
+ export BUILD_ID=" Travis build: ${TRAVIS_BUILD_NUMBER} "
54
58
if [ " ${TRAVIS_PULL_REQUEST} " != " false" ]; then
55
59
export IS_PULL=1
56
60
fi
@@ -78,7 +82,7 @@ cd ${REPO_NAME}
78
82
git config --global push.default simple
79
83
# Pretend to be an user called Doxygen CI.
80
84
git config user.name " Doxygen CI"
81
- git config user.email
" [email protected] "
85
+ git config user.email " ci-arduino@invalid "
82
86
83
87
# Remove everything currently in the gh-pages branch.
84
88
# GitHub is smart enough to know which files have changed and which files have
@@ -171,7 +175,9 @@ if [ -d "html" ] && [ -f "html/index.html" ]; then
171
175
# Commit the added files with a title and description containing the Travis CI
172
176
# build number and the GitHub commit reference that issued this build.
173
177
echo ' Git committing'
174
- git commit -m " Deploy code docs to GitHub Pages Travis build: ${TRAVIS_BUILD_NUMBER} " -m " Commit: ${TRAVIS_COMMIT} "
178
+ git commit \
179
+ -m " Deploy docs to GitHub Pages from commit ${COMMIT_SHA1: 0: 10} " \
180
+ -m " Commit: ${COMMIT_SHA1} " $' \n ' " ${BUILD_ID} "
175
181
176
182
# Force push to the remote gh-pages branch.
177
183
# The ouput is redirected to /dev/null to hide any sensitive credential data
0 commit comments