From 5604533e200c5a54ecf4d4516c341d3c32b7623f Mon Sep 17 00:00:00 2001 From: sidey79 <7968127+sidey79@users.noreply.github.com> Date: Sun, 7 Nov 2021 02:31:59 +0100 Subject: [PATCH] Update mirror.yml move add workflow step position --- .github/workflows/mirror.yml | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index e316d8e8a..1d20fb417 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -73,6 +73,20 @@ jobs: cat ${GITHUB_WORKSPACE}/src/fhem-mirror/.git/config; fi + - name: Copy Workflow Files to target + run: | + 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 id: fetchsvn timeout-minutes: 1800 @@ -107,19 +121,7 @@ jobs: # echo "Will now prepare push following directory structure to remote repo:"; # ls -la ; # git config --add remote.origin.push 'refs/remotes/svn/trunk:refs/heads/master'; - - name: Copy Workflow Files to target - run: | - 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: Push force changes to master branch in same repo if: ${{ steps.fetchsvn.outputs.SVN_FETCH_STATUS == 'complete' }}