name: commitizen on: merge_group: pull_request: jobs: check_pr_title: name: check_pr_title if: github.event_name == 'pull_request' uses: dfinity/ci-tools/.github/workflows/check-pr-title.yaml@a98f5d0198719ad41ded2f02fa0f5e426102f369 # main check_commit_messages: name: check_commit_messages if: github.event_name == 'merge_group' uses: dfinity/ci-tools/.github/workflows/check-commit-messages.yaml@a98f5d0198719ad41ded2f02fa0f5e426102f369 # main commitizen: name: commitizen:required runs-on: ubuntu-latest needs: [check_pr_title, check_commit_messages] if: always() steps: - name: Check previous jobs run: | if [[ "${{ needs.check_pr_title.result }}" == "success" || "${{ needs.check_pr_title.result }}" == "skipped" ]] && [[ "${{ needs.check_commit_messages.result }}" == "success" || "${{ needs.check_commit_messages.result }}" == "skipped" ]]; then echo "All required jobs passed or were skipped." else echo "One or more jobs failed." exit 1 fi