mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-27 20:34:52 +00:00
mirror.yml
- mod git init
This commit is contained in:
parent
fdb67da90f
commit
1918135e8f
7
.github/workflows/mirror.yml
vendored
7
.github/workflows/mirror.yml
vendored
@ -59,19 +59,20 @@ jobs:
|
|||||||
${{ runner.os }}-fhemsvnmirror3-
|
${{ runner.os }}-fhemsvnmirror3-
|
||||||
|
|
||||||
- name: init mirror repository if it is not already a mirror
|
- name: init mirror repository if it is not already a mirror
|
||||||
timeout-minutes: 1800
|
timeout-minutes: 3800
|
||||||
run: |
|
run: |
|
||||||
if [[ ! -d "${GITHUB_WORKSPACE}/src/fhem-mirror/.git" ]]; then
|
if [[ ! -d "${GITHUB_WORKSPACE}/src/fhem-mirror/.git" ]]; then
|
||||||
git init "${GITHUB_WORKSPACE}/src/fhem-mirror" ;
|
git init "${GITHUB_WORKSPACE}/src/fhem-mirror" ;
|
||||||
cd "${GITHUB_WORKSPACE}/src/fhem-mirror";
|
cd "${GITHUB_WORKSPACE}/src/fhem-mirror";
|
||||||
git svn init --trunk=trunk --prefix=svn/ https://svn.fhem.de/fhem ;
|
git svn init --trunk=trunk --tags=tags --prefix=svn/ https://svn.fhem.de/fhem;
|
||||||
git config --add svn-remote.svn.preserve-empty-dirs "true" ;
|
git config --add svn-remote.svn.preserve-empty-dirs "true" ;
|
||||||
git config --add svn-remote.svn.placeholder-filename ".gitkeep" ;
|
git config --add svn-remote.svn.placeholder-filename ".gitkeep" ;
|
||||||
git config --add svn.authorsfile "${GITHUB_WORKSPACE}/authors_merged.txt" ;
|
git config --add svn.authorsfile "${GITHUB_WORKSPACE}/authors_merged.txt" ;
|
||||||
# Run extra fetches after init, go pick up some base refs for the cache on first run only!
|
# Run extra fetches after init, go pick up some base refs for the cache on first run only!
|
||||||
timeout 300 git svn -q fetch || timeout 300 git svn -q fetch || timeout 300 git svn -q fetch || true
|
timeout 3000 git svn -q fetch || timeout 300 git svn -q fetch || timeout 300 git svn -q fetch || true
|
||||||
else
|
else
|
||||||
echo "Current .git/config file content:";
|
echo "Current .git/config file content:";
|
||||||
|
git svn init --trunk=trunk --tags=tags --prefix=svn/ https://svn.fhem.de/fhem;
|
||||||
cat ${GITHUB_WORKSPACE}/src/fhem-mirror/.git/config;
|
cat ${GITHUB_WORKSPACE}/src/fhem-mirror/.git/config;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user