diff --git a/.github/workflows/trigger_osstd_repo_action.yml b/.github/workflows/trigger_osstd_repo_action.yml index 51aa4a1..bd3aa1f 100644 --- a/.github/workflows/trigger_osstd_repo_action.yml +++ b/.github/workflows/trigger_osstd_repo_action.yml @@ -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 }}"}' \ No newline at end of file diff --git a/test_code.py b/test_code.py new file mode 100644 index 0000000..51f33af --- /dev/null +++ b/test_code.py @@ -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/') +# %%