From ca76d28777eecab0742a94e693a16a151b55eb96 Mon Sep 17 00:00:00 2001 From: Stepan Lavrentev Date: Tue, 2 Jul 2024 09:02:48 +0300 Subject: [PATCH] feat: adding sync workflow --- .github/workflows/sync_workflow.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/sync_workflow.yaml b/.github/workflows/sync_workflow.yaml index 3dc151cf..6435fb78 100644 --- a/.github/workflows/sync_workflow.yaml +++ b/.github/workflows/sync_workflow.yaml @@ -11,15 +11,15 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout current repository - uses: actions/checkout@v4 - - name: Checkout subquery-common-api-polkadot-transactions repository uses: actions/checkout@v4 with: repository: subquery/subquery-common-api-polkadot-transactions path: subquery-common-api + - name: Checkout current repository + uses: actions/checkout@v4 + - name: Sync repositories run: | rsync -av --exclude='./ipfs-cids' --exclude='README.md' --exclude='NOTICE' --exclude='*.yaml' subquery-common-api/ . @@ -28,6 +28,7 @@ jobs: run: | git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" git config --local user.name "github-actions[bot]" + git status git checkout -b sync-branch-${{ github.run_id }} git add -A git commit -m "Sync with subquery-common-api-polkadot-transactions"