Skip to content

Commit

Permalink
add action to trigger OSSTD workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
leijerry888 committed Nov 8, 2023
1 parent 6552c63 commit 0b95edb
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/trigger_osstd_repo_action.yml
Original file line number Diff line number Diff line change
@@ -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"'" }}'

0 comments on commit 0b95edb

Please sign in to comment.