File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -168,6 +168,8 @@ jobs:
168168 steps :
169169 - name : Checkout
170170 uses : actions/checkout@v6
171+ with :
172+ fetch-depth : 1
171173
172174 - name : notify-matrix
173175 env :
Original file line number Diff line number Diff line change @@ -11,7 +11,16 @@ TEST_LOGS=""
1111BRANCH_NAME=" ${GITHUB_REF_NAME} "
1212ROOMID=" !rnWsCVUmDHDJbiSPMM:matrix.org"
1313
14- COMMIT_AUTHOR=$( git log -1 --pretty=format:' %an' 2> /dev/null)
14+ if [ " $GITHUB_EVENT_NAME " = " schedule" ]; then
15+ git fetch origin $GITHUB_REF_NAME --depth=1 2> /dev/null || true
16+ COMMIT_AUTHOR=$( git log -1 --pretty=format:' %an' 2> /dev/null)
17+ else
18+ COMMIT_AUTHOR=" ${GITHUB_EVENT_HEAD_COMMIT_AUTHOR_NAME:- } "
19+ if [ -z " $COMMIT_AUTHOR " ]; then
20+ COMMIT_AUTHOR=$( git log -1 --pretty=format:' %an' 2> /dev/null)
21+ fi
22+ fi
23+
1524
1625if [ " ${GITHUB_BUILD_STATUS} " == " failure" ]; then
1726 BUILD_STATUS=" ❌️ Failure"
You can’t perform that action at this time.
0 commit comments