mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
Update mirror.yml
- correct copy command - Updated cache to hour based timestamp
This commit is contained in:
parent
c9d536ee95
commit
f1338f0cdd
11
.github/workflows/mirror.yml
vendored
11
.github/workflows/mirror.yml
vendored
@ -16,10 +16,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
env:
|
|
||||||
TRAVIS_REPO_SLUG: ${{ github.repository }}
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: install git-svn package
|
- name: install git-svn package
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get remove git git-man
|
sudo apt-get remove git git-man
|
||||||
@ -33,9 +30,11 @@ jobs:
|
|||||||
id: get-date
|
id: get-date
|
||||||
run: |
|
run: |
|
||||||
echo "::set-output name=seconds::$(/bin/date -u "+%s")"
|
echo "::set-output name=seconds::$(/bin/date -u "+%s")"
|
||||||
|
echo "::set-output name=timestamp::$(/bin/date -u'+%Y%m%d_%H')"
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
|
- uses: actions/checkout@v2.4.0
|
||||||
with:
|
with:
|
||||||
ref: travis
|
ref: travis
|
||||||
path: ./authors
|
path: ./authors
|
||||||
@ -53,7 +52,7 @@ jobs:
|
|||||||
uses: actions/cache@v2.1.6
|
uses: actions/cache@v2.1.6
|
||||||
with:
|
with:
|
||||||
path: ./src/fhem-mirror
|
path: ./src/fhem-mirror
|
||||||
key: ${{ runner.os }}-fhemsvnmirror-${{ steps.get-date.outputs.seconds }}
|
key: ${{ runner.os }}-fhemsvnmirror-${{ steps.get-date.outputs.timestamp }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-fhemsvnmirror-
|
${{ runner.os }}-fhemsvnmirror-
|
||||||
|
|
||||||
@ -111,7 +110,7 @@ jobs:
|
|||||||
# git config --add remote.origin.push 'refs/remotes/svn/trunk:refs/heads/master';
|
# git config --add remote.origin.push 'refs/remotes/svn/trunk:refs/heads/master';
|
||||||
- name: Recopy Workflow Files
|
- name: Recopy Workflow Files
|
||||||
run: |
|
run: |
|
||||||
cp -R .github/* ./src/fhem-mirror/.github/
|
cp -R .github ./src/fhem-mirror/
|
||||||
exit 1
|
exit 1
|
||||||
|
|
||||||
- name: Push force changes to master branch in same repo
|
- name: Push force changes to master branch in same repo
|
||||||
|
Loading…
Reference in New Issue
Block a user