From 07ea524433bf260c31d811d780355d1b00bf8b16 Mon Sep 17 00:00:00 2001 From: Jan Lieskovsky Date: Tue, 30 Mar 2021 13:02:31 +0200 Subject: [PATCH] [KEYCLOAK-17326] Fix: $ git diff --name-only HEAD^ fatal: ambiguous argument 'HEAD^': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git [...] -- [...]' GHA failure on 'Test Clustering on Wildfly' phase. See e.g. recent: https://github.com/keycloak/keycloak/pull/7705/checks?check_run_id=2023996258 Signed-off-by: Jan Lieskovsky --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 96857429c8..37807692c5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -187,6 +187,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + with: + fetch-depth: 2 - name: Check whether this phase should run run: echo "GIT_DIFF=$[ $( git diff --name-only HEAD^ | egrep -ic 'crossdc|infinispan' ) + $( git diff HEAD^ pom.xml | egrep -ic '\+\s+' ) ]" >> $GITHUB_ENV