From 740bfaa8ff39510e8b8049e711ac5c801d194199 Mon Sep 17 00:00:00 2001 From: DMarinhoCodacy <102817200+DMarinhoCodacy@users.noreply.github.com> Date: Mon, 22 Apr 2024 12:31:09 +0100 Subject: [PATCH] TCE-937 add condition to setup go only if the user wants to run staticcheck (#126) * add condition to setup go only if the user wants to run staticcheck * fix condition * fix condition * fix condition * fix condition * fix condition * fix condition * Update command * update command * remove useless brakets --------- Co-authored-by: Stefan Vacareanu --- action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/action.yml b/action.yml index a756eee..4972d11 100644 --- a/action.yml +++ b/action.yml @@ -143,6 +143,7 @@ runs: echo "Skipping GoSec" fi - name: set-up go + if: ${{ inputs.run-staticcheck == 'true' }} uses: actions/setup-go@v3 with: go-version: 1.20.2