From 47a15d95dbbfb25d99742903aafb337427b74158 Mon Sep 17 00:00:00 2001 From: sidey79 <7968127+sidey79@users.noreply.github.com> Date: Sun, 7 Nov 2021 00:49:15 +0100 Subject: [PATCH] Update mirror.yml fix copy command --- .github/workflows/mirror.yml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index f5e573680..76b5521b1 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -23,7 +23,13 @@ jobs: sudo apt-get update sudo apt-get install git-svn --no-install-recommends - - name: checkout mirror config branch + - name: checkout authors + uses: actions/checkout@v2.4.0 + with: + ref: travis + path: ./authors + + - name: checkout main branch uses: actions/checkout@v2.4.0 - name: Get current date as seconds @@ -32,13 +38,7 @@ jobs: echo "::set-output name=seconds::$(/bin/date -u "+%s")" echo "::set-output name=timestamp::$(/bin/date -u'+%Y%m%d_%H')" shell: bash - - - - uses: actions/checkout@v2.4.0 - with: - ref: travis - path: ./authors - + - name: generate merged authors file run: | cd /tmp @@ -56,7 +56,6 @@ jobs: restore-keys: | ${{ runner.os }}-fhemsvnmirror- - - name: init mirror repository if it is not already a mirror timeout-minutes: 1800 run: | @@ -110,7 +109,7 @@ jobs: # git config --add remote.origin.push 'refs/remotes/svn/trunk:refs/heads/master'; - name: Recopy Workflow Files run: | - cp -R .github ./src/fhem-mirror/ + cp -R ${GITHUB_WORKSPACE}/.github ./src/fhem-mirror exit 1 - name: Push force changes to master branch in same repo