From 8c9a0475501f755341a17c9450dce467bb312e5f Mon Sep 17 00:00:00 2001 From: Andrew <47720952+andrewhong5297@users.noreply.github.com> Date: Tue, 28 Nov 2023 17:04:37 -0500 Subject: [PATCH] test renmaing --- .../workflows/{update_to_dune.yml => push_to_dune.yml} | 2 +- README.md | 10 +++++++--- scripts/{update_from_dune.py => pull_from_dune.py} | 0 scripts/{update_to_dune.py => push_to_dune.py} | 0 4 files changed, 8 insertions(+), 4 deletions(-) rename .github/workflows/{update_to_dune.yml => push_to_dune.yml} (93%) rename scripts/{update_from_dune.py => pull_from_dune.py} (100%) rename scripts/{update_to_dune.py => push_to_dune.py} (100%) diff --git a/.github/workflows/update_to_dune.yml b/.github/workflows/push_to_dune.yml similarity index 93% rename from .github/workflows/update_to_dune.yml rename to .github/workflows/push_to_dune.yml index cf1f3a3..f96e299 100644 --- a/.github/workflows/update_to_dune.yml +++ b/.github/workflows/push_to_dune.yml @@ -1,4 +1,4 @@ -name: Update to Dune on Commit (Push Queries) +name: Push to Dune on Commit on: push: diff --git a/README.md b/README.md index ee52ee8..6c9fccc 100644 --- a/README.md +++ b/README.md @@ -9,16 +9,20 @@ A template for creating repos to manage your Dune queries using the CRUD API. 2. Copy and paste that list into the `queries.yml` file. -3. Install the python requirements and run the `update_from_dune.py` script. You can input the following lines into a terminal/CLI: +3. Install the python requirements and run the `pull_from_dune.py` script. You can input the following lines into a terminal/CLI: ``` pip install -r requirements.txt -python scripts/update_from_dune.py +python scripts/pull_from_dune.py ``` This will bring in your query ids into `query_{id}.sql` files within the `queries` folder. You can run that same python script again anytime you need to update your work from Dune into this repo. -4. Make any changes you need to directly in the repo, and any time you push a commit, `update_to_dune.py` will run and save your changes into Dune directly. We use the [Dune CRUD API](https://dune.com/docs/api/api-reference/edit-queries/) to manage queries - note that this does not change how your queries behave in app. +4. Make any changes you need to directly in the repo, and any time you push a commit, `push_to_dune.py` will run and save your changes into Dune directly. We use the [Dune CRUD API](https://dune.com/docs/api/api-reference/edit-queries/) to manage queries - note that this does not change how your queries behave in app. You can also do this without waiting for a commit/github action by running the script manually: + +``` +python scripts/push_to_dune.py +``` ### For Contributors diff --git a/scripts/update_from_dune.py b/scripts/pull_from_dune.py similarity index 100% rename from scripts/update_from_dune.py rename to scripts/pull_from_dune.py diff --git a/scripts/update_to_dune.py b/scripts/push_to_dune.py similarity index 100% rename from scripts/update_to_dune.py rename to scripts/push_to_dune.py