From f6baef2581fedc5207e2f52729e9a0a421b41629 Mon Sep 17 00:00:00 2001 From: djarrancotleanu Date: Fri, 28 Jun 2024 10:42:10 +1000 Subject: [PATCH] issue #116: fix fetch-depth ternary --- .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 61994ac..3905488 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -125,7 +125,7 @@ jobs: with: # Needed for 'changed-files' actions (alternatively could be a fixed # large number but may cause issues if limited). - fetch-depth: ${{ ((contains(github.event_name, 'push') && steps.check-branch.outputs.publishable == 'true')) && 0 || 2 }} + fetch-depth: ${{ !((contains(github.event_name, 'push') && steps.check-branch.outputs.publishable == 'true')) && 2 || 0 }} path: plugin submodules: true - name: Check if release is required (version.php changes)