-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (53 loc) · 1.92 KB
/
measures_common.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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/* dst/measures/ChangeBuildingLocation/
cp -r src/lib/measures/SetLightingLoadsByLPD/* dst/measures/SetLightingLoadsByLPD/
cp -r src/lib/measures/set_electric_equipment_loads_by_epd/* dst/measures/set_electric_equipment_loads_by_epd/
cp -r src/lib/measures/set_space_infiltration_per_exterior_area/* dst/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