From e8563e6ce5e2397aacab4f36c61cff60ec941b4d Mon Sep 17 00:00:00 2001 From: Doug Gschwind Date: Wed, 21 Dec 2022 12:04:35 -0800 Subject: [PATCH] fix: do not need to explicitly test for true --- lint/action.yaml | 8 +++++--- release/action.yaml | 2 +- test/action.yaml | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/lint/action.yaml b/lint/action.yaml index b3bc3dd..f953879 100644 --- a/lint/action.yaml +++ b/lint/action.yaml @@ -17,11 +17,13 @@ inputs: runs: using: composite steps: - - uses: actions/checkout@v3 - if: inputs.checkout-repo == 'true' + - name: Checkout + uses: actions/checkout@v3 + if: inputs.checkout-repo with: fetch-depth: 0 - - uses: open-turo/action-pre-commit@v1 + - Name: Pre-commit + uses: open-turo/action-pre-commit@v1 env: ORG_GRADLE_PROJECT_artifactoryUsername: ${{ inputs.artifactory-username }} ORG_GRADLE_PROJECT_artifactoryAuthToken: ${{ inputs.artifactory-auth-token }} diff --git a/release/action.yaml b/release/action.yaml index 1b488d5..9bdb787 100644 --- a/release/action.yaml +++ b/release/action.yaml @@ -30,7 +30,7 @@ runs: steps: - name: Checkout uses: actions/checkout@v3 - if: inputs.checkout-repo == 'true' + if: inputs.checkout-repo with: fetch-depth: 0 - name: Setup tools diff --git a/test/action.yaml b/test/action.yaml index 913cf16..a8f7d6e 100644 --- a/test/action.yaml +++ b/test/action.yaml @@ -19,7 +19,7 @@ runs: steps: - name: Checkout uses: actions/checkout@v3 - if: inputs.checkout-repo == 'true' + if: inputs.checkout-repo - name: Setup tools uses: open-turo/action-setup-tools@v1 - name: Test