From f1338f0cddc8d7e7b8ec789e66f89cec9849b52c Mon Sep 17 00:00:00 2001 From: sidey79 <7968127+sidey79@users.noreply.github.com> Date: Sun, 7 Nov 2021 00:41:56 +0100 Subject: [PATCH] Update mirror.yml - correct copy command - Updated cache to hour based timestamp --- .github/workflows/mirror.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index 2585ef4ff..f5e573680 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -16,10 +16,7 @@ jobs: runs-on: ubuntu-latest continue-on-error: true - env: - TRAVIS_REPO_SLUG: ${{ github.repository }} steps: - - name: install git-svn package run: | sudo apt-get remove git git-man @@ -33,9 +30,11 @@ jobs: id: get-date run: | 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 + + - uses: actions/checkout@v2.4.0 with: ref: travis path: ./authors @@ -53,7 +52,7 @@ jobs: uses: actions/cache@v2.1.6 with: path: ./src/fhem-mirror - key: ${{ runner.os }}-fhemsvnmirror-${{ steps.get-date.outputs.seconds }} + key: ${{ runner.os }}-fhemsvnmirror-${{ steps.get-date.outputs.timestamp }} restore-keys: | ${{ runner.os }}-fhemsvnmirror- @@ -111,7 +110,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/.github/ + cp -R .github ./src/fhem-mirror/ exit 1 - name: Push force changes to master branch in same repo