[devops] hotfix CI about testmon cache (#3910)

* [devops] hotfix CI about testmon cache

* [devops] fix testmon cahe on pr
pull/3911/head^2
Hongxin Liu 2023-06-06 18:58:58 +08:00 committed by GitHub
parent 0e484e6201
commit 41fb7236aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -65,10 +65,10 @@ jobs:
run: | # branch name may contain slash, we need to replace it with space
export BASE=$(echo ${{ github.event.pull_request.base.ref }} | sed "s/\// /")
if [ -d "/github/home/testmon_cache/${BASE}" ]; then
[ ! -z "$(ls -A "/github/home/testmon_cache/${BASE}")" ] && mkdir /github/home/testmon_cache/_pull && cp -p -r "/github/home/testmon_cache/${BASE}" /github/home/testmon_cache/_pull/${PR_NUMBER}
[ ! -z "$(ls -A "/github/home/testmon_cache/${BASE}")" ] && mkdir -p /github/home/testmon_cache/_pull && cp -p -r "/github/home/testmon_cache/${BASE}" /github/home/testmon_cache/_pull/${PR_NUMBER}
fi
env:
PR_NUMBER: ${{ github.event.pull_request.head.ref }}
PR_NUMBER: ${{ github.event.number }}
detect:
name: Detect file change