Skip to content

"tv-scripting-623 (737865b0eb8b3acf9b9a3a4e53f6d7065c76e609)" #8201

"tv-scripting-623 (737865b0eb8b3acf9b9a3a4e53f6d7065c76e609)"

"tv-scripting-623 (737865b0eb8b3acf9b9a3a4e53f6d7065c76e609)" #8201

name: Mirroring repo
on:
push
jobs:
mirroring:
if: github.repository == 'multicharts/study_repo_data'
runs-on: ubuntu-latest
steps:
- uses : actions/checkout@v3
with:
fetch-depth: 0
- name: Preparing to mirror
run: |
mkdir -p ~/.ssh && echo "${{ secrets.MIRROR_SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa
- name: Mirroring to destination repo
env:
TARGET_REPO_URL: '[email protected]:tradingview/study_repo_data.git'
run: |
git remote add mirror $TARGET_REPO_URL && git push --progress --tags --force --prune mirror 'refs/remotes/origin/*:refs/heads/*'