Skip to content

Commit

Permalink
Create measures_model_articulation.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewSteen authored Oct 31, 2023
1 parent 5614ff8 commit 077731f
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/measures_model_articulation.yaml
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

0 comments on commit 077731f

Please sign in to comment.