Skip to content

Commit

Permalink
feat: adding sync workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
stepanLav committed Jul 2, 2024
1 parent e680886 commit ca76d28
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/sync_workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/ .
Expand All @@ -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"
Expand Down

0 comments on commit ca76d28

Please sign in to comment.