Skip to content

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

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

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

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
git add -A
git commit -m "Sync with subquery-common-api-polkadot-transactions"
- name: Push changes
run: |
git push -f https://github.com/novasamatech/subquery-nova.git sync-branch
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: sync-branch
title: "Sync with subquery-common-api-polkadot-transactions"
body: "This PR syncs the repository with subquery-common-api-polkadot-transactions"
base: master