mirror of
https://github.com/Alfresco/alfresco-transform-core.git
synced 2025-05-12 17:04:48 +00:00
ACS-8920 Fix pre-commit for empty commits (#1035)
* ACS-8920 Test empty commit * ACS-8920 Test empty commit * ACS-8920 Test empty commit * ACS-8920 Test empty commit * ACS-8920 Pre-commit job should fail * Revert "ACS-8920 Pre-commit job should fail" This reverts commit 80516b76d436c5cb479c8c9edfe3c42edc9131e6. * ACS-8920 Test empty commit * ACS-8920 Remove temporary condition
This commit is contained in:
parent
39bc4613c4
commit
22abe079e9
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user