Required status checks, reusable workflows and skipped jobs #72708
Unanswered
markgoddard
asked this question in
Actions
Replies: 3 comments
-
Follow up: |
Beta Was this translation helpful? Give feedback.
0 replies
-
I have the same problem. I ended up creating my own status checks using the GH CLI based on success or not. This works but again, not an ideal solution at all. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Product Feedback
Body
I have a PR workflow that calls several other reusable workflows. There is a dependency from the
all-in-one-*
jobs on thebuild-kayobe-image
job. Each job is listed as a required status check.Since these jobs take a long time, I'm trying to add path filtering to run certain jobs when particular files changed.
At first, I tried the workflow-level path filtering. This is a nice feature but does not work with my reusable workflows because the name of the check differs depending on whether the job is skipped or not.
e.g. When the
all-in-one-centos-ovs
job in the outer workflow runs, it registers a check asaio (CentOS OVS) / All in one
. However if the job is skipped, it registers asaio (CentOS OVS)
and I still see theaio (CentOS OVS) / All in one
job asExpected — Waiting for status to be reported
.Next, I tried using the dorny/paths-filter action to conditionally skip jobs. This suffers from the same problem with job naming, but I was able to work around it by passing a skip condition into the reusable job.
I also had to add an
always()
condition to the dependent jobs to avoid them being skipped if the parent job is skipped. I'm unsure if this is a good solution.I believe this is now doing what I want, but it doesn't seem like an ideal solution.
Beta Was this translation helpful? Give feedback.
All reactions