-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add action to trigger OSSTD workflow
- Loading branch information
1 parent
6552c63
commit 0b95edb
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"'" }}' |