pre-commit-ci / issues

public issues for https://pre-commit.ci
16 stars 3 forks source link

How to wait for pre-commit to complete before running other workflows/jobs #175

Closed Crocmagnon closed 1 year ago

Crocmagnon commented 1 year ago

This is more a question than an issue: how can I wait on pre-commit.ci to finish its job before triggering/continuing another workflow?

Context: I'm often working alone on my side projects and I want to trigger a deployment to production whenever there's a push on the master branch. However, I don't want to deploy code that doesn't pass pre-commit hooks.

I'm currently running pre-commit directly as part of my own workflow but it feels very inefficient since pre-commit.ci is way faster.

asottile commented 1 year ago

I believe #106 contains the previous discussion about this

Crocmagnon commented 1 year ago

Thanks, I didn't find it while searching. I'll have to check whether that fits my use case though.