2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +00:00

Update mirror.yml

checkout main branch to another directory
This commit is contained in:
sidey79 2021-12-12 21:56:22 +01:00 committed by GitHub
parent 377aca9cd7
commit 620813148b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,8 +32,8 @@ jobs:
- name: checkout main branch - name: checkout main branch
uses: actions/checkout@v2.4.0 uses: actions/checkout@v2.4.0
with: with:
path: ./src/fhem-mirror path: ./main
- name: Get current date - name: Get current date
id: get-date id: get-date
run: | run: |
@ -74,14 +74,14 @@ jobs:
echo "::set-output name=SVN_FETCH_STATUS::incomplete" echo "::set-output name=SVN_FETCH_STATUS::incomplete"
# Run fetches after init, go pick up some base refs for the cache on first run only! # Run fetches after init, go pick up some base refs for the cache on first run only!
RET=124 RET=124
c=0 c=1
while [ $RET -eq 124 ]; do while [ $RET -eq 124 ]; do
echo "::group::Fetch ${c}/10" echo "::group::Fetch ${c}/4"
timeout 600 git svn --log-window-size=200 -q fetch && RET=$? || true timeout 600 git svn --log-window-size=200 -q fetch && RET=$? || true
if [ "$RET" -ne 0 ] && [ "$RET" -ne 124 ]; then if [ "$RET" -ne 0 ] && [ "$RET" -ne 124 ]; then
echo "::set-output name=SVN_FETCH_STATUS::error" echo "::set-output name=SVN_FETCH_STATUS::error"
fi fi
((c++)) && ((c==10)) && break ((c++)) && ((c==4)) && break
echo "::endgroup::" echo "::endgroup::"
done done
if [ "$RET" -eq 0 ]; then if [ "$RET" -eq 0 ]; then