This repository contains a GitHub Actions workflow for automatically fetching data from multiple blockchain networks (Ethereum, NEAR, StarkNet, and Axelar) and committing the changes to the repository.
To use this workflow, follow these steps:
-
Use this template: Click on the "Use this template" button on the GitHub repository page to create a new repository based on this template.
-
Name your repository: Give your new repository a name of your choice.
-
Configure workflow: After creating the repository, navigate to the Actions tab and click on "Set up a workflow yourself". Copy and paste the content of the
main.yml
file from this repository into the editor. -
Set user email and name: Update the
GIT_USER_EMAIL
andGIT_USER_NAME
environment variables in the workflow file (main.yml
) to reflect your GitHub account details. -
Update RPC URLs: Update the RPC URLs in each script file (
ethereum.sh
,near.sh
,starknet.sh
, andaxelar.sh
) with the corresponding URLs of your blockchain networks. -
Run the workflow: The workflow is triggered automatically on a schedule (every 15-20 minutes) and can also be manually triggered from the GitHub UI.
You can manually trigger the workflow from the GitHub UI by selecting the "Run workflow" option.
- ethereum.sh: Script to fetch data from the Ethereum network.
- near.sh: Script to fetch data from the NEAR network.
- starknet.sh: Script to fetch data from the StarkNet network.
- axelar.sh: Script to fetch data from the Axelar network.
The workflow consists of multiple jobs, each corresponding to a different blockchain network. The jobs are executed sequentially, with each job depending on the completion of the previous job.
- ethereum_auto_commit: Fetches data from the Ethereum network and commits the changes to the repository.
- near_auto_commit: Fetches data from the NEAR network and commits the changes to the repository.
- starknet_auto_commit: Fetches data from the StarkNet network and commits the changes to the repository.
- axelar_auto_commit: Fetches data from the Axelar network and commits the changes to the repository.