diff --git a/.github/workflows/deploy-production.yml b/.github/workflows/deploy-production.yml index 825f5e02..9bea776b 100644 --- a/.github/workflows/deploy-production.yml +++ b/.github/workflows/deploy-production.yml @@ -127,6 +127,8 @@ jobs: VALIDATE_ALL_CODEBASE: false GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} DEFAULT_BRANCH: main + LOCAL_UPDATES: true + ############################################################### # Fix file and dir ownership. # diff --git a/action.yml b/action.yml index 8f57e01b..6220ad33 100644 --- a/action.yml +++ b/action.yml @@ -4,7 +4,7 @@ author: 'GitHub' description: 'It is a simple combination of various linters, written in bash, to help validate your source code.' runs: using: 'docker' - image: 'docker://ghcr.io/github/super-linter:v4.9.2' + image: 'docker://ghcr.io/github/super-linter:v4.9.3' branding: icon: 'check-square' color: 'white' diff --git a/lib/functions/buildFileList.sh b/lib/functions/buildFileList.sh index a92b4079..b4ef39ea 100755 --- a/lib/functions/buildFileList.sh +++ b/lib/functions/buildFileList.sh @@ -101,7 +101,7 @@ function BuildFileList() { ############################## # Check the shell for errors # ############################## - if [ ${ERROR_CODE} -ne 0 ]; then + if [ ${ERROR_CODE} -ne 0 ] && [ "${LOCAL_UPDATDES}" == "false" ]; then # Error info "Failed to switch to ${DEFAULT_BRANCH} branch to get files changed!" fatal "[${SWITCH_CMD}]" diff --git a/lib/linter.sh b/lib/linter.sh index de26d295..e80f6663 100755 --- a/lib/linter.sh +++ b/lib/linter.sh @@ -132,6 +132,8 @@ LATEX_FILE_NAME=".chktexrc" # shellcheck disable=SC2034 # Variable is referenced indirectly LUA_FILE_NAME=".luacheckrc" # shellcheck disable=SC2034 # Variable is referenced indirectly +LOCAL_UPDATES="${LOCAL_UPDATES:-false}" +# shellcheck disable=SC2034 # Variable is referenced indirectly MARKDOWN_FILE_NAME="${MARKDOWN_CONFIG_FILE:-.markdown-lint.yml}" # shellcheck disable=SC2034 # Variable is referenced indirectly OPENAPI_FILE_NAME=".openapirc.yml" diff --git a/slim/action.yml b/slim/action.yml index c225daf0..fda4d227 100644 --- a/slim/action.yml +++ b/slim/action.yml @@ -4,7 +4,7 @@ author: 'GitHub' description: 'It is a simple combination of various linters, written in bash, to help validate your source code.' runs: using: 'docker' - image: 'docker://ghcr.io/github/super-linter:slim-v4.9.2' + image: 'docker://ghcr.io/github/super-linter:slim-v4.9.3' branding: icon: 'check-square' color: 'white'