mirror of https://github.com/fhem/fhem-mirror.git
Update mirror.yml
try tmpfs for cloned repo try github conext variable instead of an environment variable
This commit is contained in:
parent
3f8750eaeb
commit
fc0c941fd6
|
@ -42,6 +42,10 @@ jobs:
|
|||
cat ${GITHUB_WORKSPACE}/authors.txt ${GITHUB_WORKSPACE}/authors_svn.txt | sort -u -k1,1 > ${GITHUB_WORKSPACE}/authors/authors_merged.txt;
|
||||
ls -la ${GITHUB_WORKSPACE}/authors/authors_merged.txt;
|
||||
|
||||
- name: create tmpfs for svn repo
|
||||
run: |
|
||||
sudo mount -t tmpfs -o size=3G tmpfs ./src/fhem-mirror/
|
||||
|
||||
- name: Cache runners svn-2-git-fhem mirror directory
|
||||
# Some room for improvement because we create a new cache on every run where a new ref is fetched, this isn't very nice, normaly weneed only the last one and it takes 7 days until they are deleted
|
||||
id: cache-fhem
|
||||
|
@ -127,7 +131,7 @@ jobs:
|
|||
if: ${{ steps.fetchsvn.outputs.SVN_FETCH_STATUS == 'complete' }}
|
||||
working-directory: ./src/fhem-mirror
|
||||
run: |
|
||||
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
|
||||
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
|
||||
git fetch --unshallow || true
|
||||
git push origin master --force --tags
|
||||
|
||||
|
|
Loading…
Reference in New Issue