File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ if [ "${2}" ]; then
3030echo " Resetting to $2 "
3131( cd ${REPO} ; git fetch origin " $2 " ; git reset --hard " $2 " )
3232fi
33+ GIT_DATE=$( cd ${REPO} ; TZ=UTC git show --quiet --date=' format-local:%Y-%m-%d %H:%M:%S UTC' --format=" %cd" )
3334echo " ::endgroup::"
3435
3536# Subdirectory containing the R package
@@ -185,6 +186,7 @@ echo "buildtools::replace_rmarkdown_engine()" > /tmp/vignettehack.R
185186# Replace or add "Repository:" in DESCRIPTION
186187if [ " ${MY_UNIVERSE} " ]; then
187188sed -n -e ' /^Repository:/!p' -e " \$ aRepository: ${MY_UNIVERSE} " -i " ${DESCRIPTION} "
189+ echo " Date/Publication: ${GIT_DATE} " >> " ${DESCRIPTION} "
188190echo " RemoteUrl: ${1} " >> " ${DESCRIPTION} "
189191echo " RemoteRef: ${BRANCH} " >> " ${DESCRIPTION} "
190192echo " RemoteSha: ${2} " >> " ${DESCRIPTION} "
You can’t perform that action at this time.
0 commit comments