Skip to content

Commit

Permalink
some updates
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewhong5297 committed Nov 28, 2023
1 parent b088876 commit f019e99
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .env.test
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
#copy and paste this file into a .env file. You will also need to add the DUNE_API_KEY into the repo settings under "Secrets and Variables"

#add a dune API key - you can create one under team settings (https://dune.com/settings/teams/manage/{team_name}/api). You must be on the premium plan.
dune_api_key=

#generate a github token, giving the actions, workflows, and content permissions (read and write). Create this using this link (https://github.com/settings/personal-access-tokens/new).
github_token=
5 changes: 4 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,7 @@ jobs:
run: pip install -r requirements.txt

- name: Run test script
run: python -u github_workflows/action.py
run: python -u github_workflows/action.py

- name: Print name
run: echo "Hello $ENV_TEST"
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# query-repo-template
# Query Repo

A template for creating repos to manage your Dune queries using the CRUD API.
14 changes: 14 additions & 0 deletions github_workflows/update_queries.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

import yaml

# Read the queries.yml file
with open('queries.yml', 'r') as file:
data = yaml.safe_load(file)

print(data)

# Extract the query_ids from the data
query_ids = [id for id in data['query_ids']]

# Print the query_ids
print(query_ids)

0 comments on commit f019e99

Please sign in to comment.