diff options
author | Artturin <Artturin@artturin.com> | 2023-10-17 22:04:48 +0300 |
---|---|---|
committer | Artturin <Artturin@artturin.com> | 2023-10-17 22:04:48 +0300 |
commit | 5fbbada2fba1f5aa51c4f2e5e54eb83eeacfe4e6 (patch) | |
tree | 7890805cb9222486e3c5311df9d82565dfb3e4d9 /.github | |
parent | e1a4c706e64d771e91a4b31fce5fd51eb259ef2c (diff) |
workflows/check-by-name: print failed command output
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/check-by-name.yml | 4 |
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" |