From 8c7dedf0c84307071a919811a1383aa1fceff944 Mon Sep 17 00:00:00 2001 From: Armand Sauzay <35524799+armand-sauzay@users.noreply.github.com> Date: Thu, 12 Oct 2023 00:14:59 +0000 Subject: [PATCH] fix: conditional checkout command --- lint/action.yaml | 2 +- release/action.yaml | 2 +- test/action.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lint/action.yaml b/lint/action.yaml index 8152d2f..56bac6b 100644 --- a/lint/action.yaml +++ b/lint/action.yaml @@ -13,7 +13,7 @@ runs: steps: - name: Checkout uses: actions/checkout@v3 - if: inputs.checkout-repo + if: inputs.checkout-repo == 'true' with: fetch-depth: 0 - name: Run npm ci if needed diff --git a/release/action.yaml b/release/action.yaml index 7f71f0c..d393720 100644 --- a/release/action.yaml +++ b/release/action.yaml @@ -34,7 +34,7 @@ runs: steps: - name: Checkout uses: actions/checkout@v3 - if: inputs.checkout-repo + if: inputs.checkout-repo == 'true' with: fetch-depth: 0 - name: Semantic release diff --git a/test/action.yaml b/test/action.yaml index b507c0e..3fa47e9 100644 --- a/test/action.yaml +++ b/test/action.yaml @@ -13,7 +13,7 @@ runs: steps: - name: Checkout uses: actions/checkout@v3 - if: inputs.checkout-repo + if: inputs.checkout-repo == 'true' - name: Test node if: hashFiles('package-lock.json') != '' shell: bash