diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b0f7cf07..a8ce2502 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,11 +37,6 @@ env: jobs: pre_commit: runs-on: ubuntu-latest - if: > - !contains(github.event.head_commit.message, '[release]') - outputs: - java_version: ${{ env.JAVA_VERSION }} - java_version_supported_by_repo: ${{ env.JAVA_VERSION_SUPPORTED_BY_REPO }} steps: - uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v7.0.0 - uses: actions/checkout@v4 diff --git a/scripts/check-format-and-headers.sh b/scripts/check-format-and-headers.sh index 4143da16..7cf66260 100755 --- a/scripts/check-format-and-headers.sh +++ b/scripts/check-format-and-headers.sh @@ -7,6 +7,12 @@ else modified_files=${GITHUB_MODIFIED_FILES} fi +if [[ -z ${modified_files} ]] +then + echo "No modified files, exiting." + exit 0 +fi + include_list="" for file in ${modified_files} do