Skip to content

Commit

Permalink
ACS-8920 Fix pre-commit for empty commits (#1035)
Browse files Browse the repository at this point in the history
* 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 80516b7.

* ACS-8920 Test empty commit

* ACS-8920 Remove temporary condition
  • Loading branch information
damianujma authored Oct 29, 2024
1 parent 39bc461 commit 22abe07
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
- uses: actions/checkout@v4
Expand Down
6 changes: 6 additions & 0 deletions scripts/check-format-and-headers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 22abe07

Please sign in to comment.