From 5fbcde6a81aaa608f01dc2deb6653f41507fbef3 Mon Sep 17 00:00:00 2001 From: dbaranov34 Date: Thu, 5 Sep 2024 14:39:29 +0400 Subject: [PATCH] rm autosync --- .github/workflows/sync.yml | 42 -------------------------------------- 1 file changed, 42 deletions(-) delete mode 100644 .github/workflows/sync.yml diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml deleted file mode 100644 index f977f344a..000000000 --- a/.github/workflows/sync.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: Sync Fork - -on: - schedule: - - cron: '0 * * * *' # Runs every hour - workflow_dispatch: - -jobs: - sync: - runs-on: ubuntu-latest - steps: - - name: Checkout repo - uses: actions/checkout@v2 - - - name: Setup Git - run: | - git config --global user.name 'dbaranovstonfi' - git config --global user.email 'd.baranov@stonfi.net' - - - name: Fetch all branches - run: git fetch --all - - - name: Add remote upstream - run: git remote add upstream https://github.com/ton-blockchain/ton - - - name: Fetch upstream branches - run: git fetch upstream - - - name: Sync branches - run: | - for branch in $(git branch -r | grep upstream | grep -v '\->' | sed 's|upstream/||'); do - git checkout $branch 2>/dev/null || git checkout -b $branch upstream/$branch - git merge upstream/$branch --strategy-option theirs || git checkout --theirs . - done - - - name: Push changes - env: - PAT: ${{ secrets.PAT }} - run: | - for branch in $(git branch -r | grep upstream | grep -v '\->' | sed 's|upstream/||'); do - git push https://dbaranovstonfi:${PAT}@github.com/ston-fi/ton.git $branch - done