mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
Create mirror.yml
move add workflow step position
This commit is contained in:
parent
5604533e20
commit
dbcd4907ce
12
.github/workflows/mirror.yml
vendored
12
.github/workflows/mirror.yml
vendored
@ -77,15 +77,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cp -R ${GITHUB_WORKSPACE}/.github ./src/fhem-mirror
|
cp -R ${GITHUB_WORKSPACE}/.github ./src/fhem-mirror
|
||||||
|
|
||||||
- name: Commit changes
|
|
||||||
uses: EndBug/add-and-commit@v7
|
|
||||||
with:
|
|
||||||
message: 'add workflow file'
|
|
||||||
cwd: './src/fhem-mirror'
|
|
||||||
add: '.github/*'
|
|
||||||
branch: main
|
|
||||||
pull: 'NO-PULL'
|
|
||||||
push: false
|
|
||||||
|
|
||||||
- name: fetch svn to git master branch
|
- name: fetch svn to git master branch
|
||||||
id: fetchsvn
|
id: fetchsvn
|
||||||
@ -96,8 +87,9 @@ jobs:
|
|||||||
RET=0
|
RET=0
|
||||||
timeout 1200 git svn -q fetch || timeout 120 git svn -q fetch || RET=$?; # Limit each run to 20 minutes to not overload fhem.de servers and build cache in chunks
|
timeout 1200 git svn -q fetch || timeout 120 git svn -q fetch || RET=$?; # Limit each run to 20 minutes to not overload fhem.de servers and build cache in chunks
|
||||||
if [[ $RET == 0 ]]; then
|
if [[ $RET == 0 ]]; then
|
||||||
git checkout -f "master"
|
git checkout -f "main"
|
||||||
git rebase "remotes/svn/trunk"
|
git rebase "remotes/svn/trunk"
|
||||||
|
git add .github/* -m "add workflow files"
|
||||||
echo "::set-output name=SVN_FETCH_STATUS::complete"
|
echo "::set-output name=SVN_FETCH_STATUS::complete"
|
||||||
elif [[ $RET != 124 ]]; then
|
elif [[ $RET != 124 ]]; then
|
||||||
echo "::set-output name=SVN_FETCH_STATUS::error"
|
echo "::set-output name=SVN_FETCH_STATUS::error"
|
||||||
|
Loading…
Reference in New Issue
Block a user