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:
parent
377aca9cd7
commit
620813148b
10
.github/workflows/mirror.yml
vendored
10
.github/workflows/mirror.yml
vendored
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user