Merge latest changes from subquery-common-api-polkadot-transactions #18
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | |
working-directory: ${{ github.workspace }} | |
- name: Push changes | |
run: | | |
git push -f https://github.com/novasamatech/subquery-nova.git sync-branch | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
working-directory: ${{ github.workspace }} | |
- name: Verify branch creation | |
run: | | |
git fetch origin | |
git branch -r | |
working-directory: ${{ github.workspace }} | |
- 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 | |
path: ${{ github.workspace }} |