-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (47 loc) · 1.45 KB
/
measures_ee.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
name: measures_ee
on: [workflow_call, workflow_dispatch]
jobs:
update:
runs-on: windows-2019
steps:
- name: checkout
uses: actions/checkout@v4
with:
path: dst
- name: dotenv
uses: falti/dotenv-action@v1
with:
path: dst/.github/workflows/.env
- name: checkout NREL/openstudio-ee-gem
uses: actions/checkout@v4
with:
repository: NREL/openstudio-ee-gem
ref: ${{ steps.dotenv.outputs.MEASURES_VERSION }}
path: src
sparse-checkout: lib/measures/AddOverhangsByProjectionFactor
- name: copy files from NREL/openstudio-ee-gem
shell: bash
run: |
cp -r src/lib/measures/AddOverhangsByProjectionFactor/* dst/measures/AddOverhangsByProjectionFactor/
- name: upload files
uses: actions/upload-artifact@v3
with:
name: measures
path: dst/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 ee
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
title: '[action] update measures ee'
branch: action/update-measures-ee
base: main