ci: Turn off nightly analysis and wheel workflows for user forks#5042
ci: Turn off nightly analysis and wheel workflows for user forks#5042lgritz merged 4 commits intoAcademySoftwareFoundation:mainfrom
Conversation
Signed-off-by: Larry Gritz <lg@larrygritz.com>
|
Thanks! |
|
I don't think this actually works, Maybe this approach is better |
Oh, that's MUCH better! |
Signed-off-by: Larry Gritz <lg@larrygritz.com>
.github/workflows/ci.yml
Outdated
| # Full nightly build | ||
| - cron: "0 8 * * *" | ||
| if: github.repository == 'AcademySoftwareFoundation/OpenImageIO' | ||
| if: github.event.repository.fork == false |
There was a problem hiding this comment.
To be clear, I don't think if is supported here.
If I search for ".if" on this page, it's only for jobs and job steps.
https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax
There was a problem hiding this comment.
yeah, Fixing that too and just posted another update
61d0399 to
d3b8a83
Compare
Signed-off-by: Larry Gritz <lg@larrygritz.com>
brechtvl
left a comment
There was a problem hiding this comment.
Looks correct to me now, just one unnecessary repetition.
Signed-off-by: Larry Gritz <lg@larrygritz.com>
|
I'll merge after CI finishes (which of course, does not test whether I've done it right, only whether I've completely broken the workflow scripts). I guess we'll find out by tomorrow morning if it really worked -- by seeing if our forks did any real work overnight. |
758082a
into
AcademySoftwareFoundation:main
|
Looking at jobs for my fork, it does look like it skipped (well, started but immediately terminated) all of the nightly cron jobs on my fork. So I think this worked! |
…ion#5042) Also switch to a better idiom for detecting if we're a fork. Signed-off-by: Larry Gritz <lg@larrygritz.com> Signed-off-by: Vlad (Kuzmin) Erium <libalias@gmail.com>
No description provided.