[CI] Fix pipeline in main due to incorrect rules of update-compile-commands
Error message:
'update-compile-commands' job needs 'check-compile-commands' job, but 'check-compile-commands' does not exist in the pipeline. This might be because of the only, except, or rules keywords. To need a job that sometimes does not exist in the pipeline, use needs:optional.