From 595499b371f36442f502c40b90365ea43dbbc783 Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Thu, 30 May 2024 21:40:51 +0200 Subject: [PATCH] action.yml: invert enabled condition --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index b2234ed6..dea7c78a 100644 --- a/action.yml +++ b/action.yml @@ -84,12 +84,12 @@ runs: using: 'composite' steps: - name: Store reviewdog enabled - # inputs.enabled == 'true' && ( + # inputs.enabled != 'false' && ( # (inputs.baseline_scan_only != 'false' && github.event_name == 'pull_request' && github.event.pull_request.draft == false && github.actor != 'dependabot[bot]') # reviewdog-enabled-pr # || # (inputs.baseline_scan_only == 'false' || github.event_name == 'workflow_dispatch') # reviewdog-enabled-full # ) - if: ${{ inputs.enabled == 'true' && ( (inputs.baseline_scan_only != 'false' && github.event_name == 'pull_request' && github.event.pull_request.draft == false && github.actor != 'dependabot[bot]') || (inputs.baseline_scan_only == 'false' || github.event_name == 'workflow_dispatch') )}} + if: ${{ inputs.enabled != 'false' && ( (inputs.baseline_scan_only != 'false' && github.event_name == 'pull_request' && github.event.pull_request.draft == false && github.actor != 'dependabot[bot]') || (inputs.baseline_scan_only == 'false' || github.event_name == 'workflow_dispatch') )}} id: reviewdog-enabled uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 with: