Skip to content

Commit

Permalink
update credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
leijerry888 committed Nov 8, 2023
1 parent 58b5059 commit f536c40
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/trigger_osstd_repo_action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:
-H 'Accept: application/vnd.github.everest-preview+json' \
-u ${{ secrets.JERRY_ACTIONS_KEY }} \
--data '{"event_type": "Trigger Workflow", "client_payload": { "repository": "'"$GITHUB_REPOSITORY"'" }}'
# below from https://github.com/marketplace/actions/repository-dispatch
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.PAT }}
repository: username/my-repo
token: ${{ secrets.JERRY_ACTIONS_KEY }}
repository: NREL/openstudio-standards
event-type: my-event
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'
11 changes: 11 additions & 0 deletions test_code.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# %%
import sqlite3
from applications.database_maintenance import create_openstudio_standards_database_from_json
conn = sqlite3.connect('openstudio_standards.db')
create_openstudio_standards_database_from_json(conn)
conn.close()
# %%
from applications.database_maintenance import export_openstudio_standards_database_to_json
conn = sqlite3.connect('openstudio_standards.db')
export_openstudio_standards_database_to_json(conn, save_dir='./database_files/')
# %%

0 comments on commit f536c40

Please sign in to comment.