diff --git a/.github/workflows/trigger_osstd_repo_action.yml b/.github/workflows/trigger_osstd_repo_action.yml new file mode 100644 index 0000000..03b2764 --- /dev/null +++ b/.github/workflows/trigger_osstd_repo_action.yml @@ -0,0 +1,14 @@ +name: Trigger OpenStudio Standards GitHub Action to Update Data +run-name: ${{github.actor}} is triggering GitHub Action in OSSTD +on: [push] # to be modified later with PR merge +jobs: + trigger-osstd-update: + name: Trigger OpenStudio GitHub Action to initiate a PR there with data update pulling data from here. + runs-on: 'ubuntu-latest' + steps: + - name: GitHub API POST + run: | + curl -X POST https://api.github.com/repos/NREL/openstudio-standards/dispatches \ + -H 'Accept: application/vnd.github.everest-preview+json' \ + -u ${{ secrets.JERRY_ACTIONS_KEY }} \ + --data '{"event_type": "Trigger Workflow", "client_payload": { "repository": "'"$GITHUB_REPOSITORY"'" }}' \ No newline at end of file