From 9a3f3d4bd5e85dceec07683ff2b3aafcf288b554 Mon Sep 17 00:00:00 2001 From: Rajendra Adhikari Date: Wed, 17 Jul 2024 10:45:37 -0500 Subject: [PATCH] Make it work both in PR and in the branch --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 54cfa7e4..c5507d04 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -116,7 +116,7 @@ jobs: - name: Install buildstockbatch run: | python -m pip install --progress-bar off --upgrade pip - pip install git+https://github.com/NREL/buildstockbatch.git@${{ github.head_ref }} + pip install git+https://github.com/NREL/buildstockbatch.git@${{ github.head_ref || github.ref_name }} - name: Run local validation of project national yml run: buildstock_local --validateonly resstock/project_national/national_baseline.yml - name: Validate upgrades