about summary refs log tree commit diff
path: root/.github
diff options
context:
space:
mode:
authorArtturin <Artturin@artturin.com>2023-10-17 22:04:48 +0300
committerArtturin <Artturin@artturin.com>2023-10-17 22:04:48 +0300
commit5fbbada2fba1f5aa51c4f2e5e54eb83eeacfe4e6 (patch)
tree7890805cb9222486e3c5311df9d82565dfb3e4d9 /.github
parente1a4c706e64d771e91a4b31fce5fd51eb259ef2c (diff)
workflows/check-by-name: print failed command output
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/check-by-name.yml4
1 files changed, 3 insertions, 1 deletions
diff --git a/.github/workflows/check-by-name.yml b/.github/workflows/check-by-name.yml
index 90ab843839f62..9c46ecea6916b 100644
--- a/.github/workflows/check-by-name.yml
+++ b/.github/workflows/check-by-name.yml
@@ -19,11 +19,13 @@ jobs:
     steps:
       - name: Resolving the merge commit
         run: |
-          if result=$(git ls-remote --exit-code ${{ github.event.pull_request.base.repo.clone_url }} refs/pull/${{ github.event.pull_request.number }}/merge); then
+          if result=$(git ls-remote --exit-code ${{ github.event.pull_request.base.repo.clone_url }} refs/pull/${{ github.event.pull_request.number }}/merge 2>&1); then
             mergedSha=$(cut -f1 <<< "$result")
             echo "The PR appears to not have any conflicts, checking the merge commit $mergedSha"
           else
             echo "The PR may have a merge conflict"
+            echo "'git ls-remote' output was:"
+            echo "$result"
             exit 1
           fi
           echo "mergedSha=$mergedSha" >> "$GITHUB_ENV"