Skip to content

measures_common

measures_common #10

name: measures_common
on: [workflow_call, workflow_dispatch]
env:
COMMON: v0.8.0
jobs:
update:
runs-on: windows-2019
steps:
- name: checkout
uses: actions/checkout@v4
# with:
# path: dst
- name: sparse checkout NREL/openstudio-common-measures-gem
uses: actions/checkout@v4
with:
repository: NREL/openstudio-common-measures-gem
ref: ${{ env.COMMON }}
path: src
sparse-checkout: |
lib/measures/ChangeBuildingLocation
lib/measures/SetLightingLoadsByLPD
lib/measures/set_electric_equipment_loads_by_epd
lib/measures/set_space_infiltration_per_exterior_area
- name: copy files from NREL/openstudio-common-measures-gem
shell: bash
run: |
ls
cp -r src/lib/measures/ChangeBuildingLocation/* measures/ChangeBuildingLocation/
cp -r src/lib/measures/SetLightingLoadsByLPD/* measures/SetLightingLoadsByLPD/
cp -r src/lib/measures/set_electric_equipment_loads_by_epd/* measures/set_electric_equipment_loads_by_epd/
cp -r src/lib/measures/set_space_infiltration_per_exterior_area/* measures/set_space_infiltration_per_exterior_area/
- 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 common
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
title: '[action] update measures common'
branch: action/update-measures-common
base: main