From 762cb7db8840a4ed64e0810a99e16ea795c8ff3d Mon Sep 17 00:00:00 2001 From: Mathew Topper Date: Tue, 29 Mar 2022 17:48:52 +0100 Subject: [PATCH] Don't force check out branch on push and PRs --- .github/workflows/run-tests-dev.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/run-tests-dev.yml b/.github/workflows/run-tests-dev.yml index 83af4ae0..b521437b 100644 --- a/.github/workflows/run-tests-dev.yml +++ b/.github/workflows/run-tests-dev.yml @@ -44,11 +44,17 @@ jobs: Write_Custom_h5] name: ${{ matrix.folder }} on MATLAB ${{ matrix.release }} steps: - - name: Check out repository + - name: Check out repository (repository dispatch) uses: actions/checkout@v2 with: lfs: true ref: 'dev' + if: github.event_name == 'repository_dispatch' + - name: Check out repository (push or pull request) + uses: actions/checkout@v2 + with: + lfs: true + if: github.event_name != 'repository_dispatch' - name: Checkout LFS objects run: git lfs checkout - name: Check out WEC-Sim