-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create measures_model_articulation.yaml
- Loading branch information
1 parent
5614ff8
commit 077731f
Showing
1 changed file
with
53 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,53 @@ | ||
name: measures_model_articulation | ||
|
||
on: [workflow_call, workflow_dispatch] | ||
|
||
env: | ||
COMMON: v0.8.0 | ||
|
||
jobs: | ||
update: | ||
runs-on: windows-2019 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: sparse checkout NREL/openstudio-model-articulation-gem | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: NREL/openstudio-model-articulation-gem | ||
ref: ${{ env.COMMON }} | ||
path: common | ||
sparse-checkout: | | ||
lib/measures/RotateBuilding | ||
lib/measures/SetWindowToWallRatioByFacade | ||
- name: copy files from NREL/openstudio-model-articulation-gem | ||
shell: bash | ||
run: cp -r common/lib/measures measures && ls measures | ||
|
||
- name: upload files | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: measures | ||
path: measures | ||
|
||
pull-request: | ||
needs: update | ||
runs-on: windows-2019 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/download-artifact@v3 | ||
|
||
- name: list | ||
run: | | ||
ls measures/ | ||
- name: pull request | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
commit-message: update measures model articulation | ||
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> | ||
title: '[action] update measures model articulation' | ||
branch: action/update-measures-model-articulation | ||
base: main |