diff --git a/.github/workflows/_pre-commit-check.yaml b/.github/workflows/_pre-commit-check.yaml index 1c7751ddf..cbf9af76f 100644 --- a/.github/workflows/_pre-commit-check.yaml +++ b/.github/workflows/_pre-commit-check.yaml @@ -31,7 +31,8 @@ jobs: - name: Check if pre-commit ran locally run: | - if git rev-parse --verify ${{ github.ref }} >/dev/null 2>&1; then + # if git rev-parse --verify ${{ github.ref }} >/dev/null 2>&1; then + if git rev-parse --verify HEAD >/dev/null 2>&1; then echo "Checking if pre-commit ran locally..." if [ -f .pre_commit_ran ]; then echo "Pre-commit checks were run locally." diff --git a/actions/java-maven-test/README.md b/actions/java-maven-test/README.md index 4577b5700..7eca43e16 100644 --- a/actions/java-maven-test/README.md +++ b/actions/java-maven-test/README.md @@ -6,12 +6,12 @@ This action runs Junit tests and publishes the test results. | Name | Required | Default Value | Type | Description | | ------------------ | :------: | :-----------: | :-----: | -------------------------------------------------------------------------------------------------- | -| maven-version | ✅ | - | string | Maven version to be installed | -| java-distribution | ❌ | microsoft | string | [Java distribution](https://github.com/actions/setup-java#supported-distributions) to be installed | -| java-version | ❌ | 11 | string | Java version to be installed | -| working-directory | ❌ | "." | string | Working directory of your Maven artifacts | -| download-lfs-files | ❌ | false | boolean | Whether the Git checkout action should resolve LFS files or not | -| command | ❌ | test | string | Command to run tests with | +| maven-version | ✅ | - | string | Maven version to be installed | +| java-distribution | ❌ | microsoft | string | [Java distribution](https://github.com/actions/setup-java#supported-distributions) to be installed | +| java-version | ❌ | 11 | string | Java version to be installed | +| working-directory | ❌ | "." | string | Working directory of your Maven artifacts | +| download-lfs-files | ❌ | false | boolean | Whether the Git checkout action should resolve LFS files or not | +| command | ❌ | test | string | Command to run tests with | ## Usage