lordgamez commented on code in PR #1398: URL: https://github.com/apache/nifi-minifi-cpp/pull/1398#discussion_r951182876
########## .github/workflows/ci.yml: ########## @@ -151,13 +151,20 @@ jobs: run: cd build && make flake8 - id: files uses: Ana06/get-changed-files@v2.1.0 + continue-on-error: true - name: clang-tidy run: | + if [[ -n "${{ steps.files.outputs.all }}" ]]; then + FILES="${{ steps.files.outputs.all }}" + else + git fetch origin main && git checkout -b main origin/main || true Review Comment: 'origin/main' may not exist if we push a new branch on the apache repository, but you are right that we should not checkout the main and run the clang tidy checks that afterwards. I fixed it by re-checking out the original commit in fd61850c10ec6a4597d9d7e56ded80e1bcb76942 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@nifi.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org