Skip to content

Merge latest changes from subquery-common-api-polkadot-transactions #7

Merge latest changes from subquery-common-api-polkadot-transactions

Merge latest changes from subquery-common-api-polkadot-transactions #7

Workflow file for this run

name: Sync with subquery-common-api-polkadot-transactions
on:
schedule:
- cron: "0 0 * * *" # Runs every day at midnight
workflow_dispatch:
pull_request:
jobs:
sync:
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: Sync repositories
run: |
rsync -av --exclude='./ipfs-cids' --exclude='README.md' --exclude='NOTICE' --exclude='*.yaml' subquery-common-api/ .
- name: Create new branch
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git checkout -b sync-branch-${{ github.run_id }}
git add -A
git commit -m "Sync with subquery-common-api-polkadot-transactions"
- name: Push changes
run: |
git push https://github.com/novasamatech/subquery-nova.git sync-branch-${{ github.run_id }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
create-pr:
runs-on: ubuntu-latest
needs: sync
steps:
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: sync-branch-${{ github.run_id }}
title: "Sync with subquery-common-api-polkadot-transactions"
body: "This PR syncs the repository with subquery-common-api-polkadot-transactions"
base: master