Skip to content

measures_ee

measures_ee #2

Workflow file for this run

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/
ls 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