redcap-tools / PyCap

REDCap in Python
http://redcap-tools.github.io/PyCap/
MIT License
169 stars 80 forks source link

Use github.triggering_actor in ci.yml #279

Closed pwildenhain closed 1 year ago

pwildenhain commented 1 year ago

Yes. And I think in the ci.yml file, on line 40 if you swap out: if: github.actor == 'pwildenhain'

With: if: github.triggering_actor == 'pwildenhain'

I think then doctest's will not get run in a fork. It thinks you were the initial github 'actor' since there was some sort of Build 1 when the PR was created here, and then when I tried Build 2 I think it failed (I think the build keeps your username as the actor, but maybe triggering_actor would work...)

https://docs.github.com/en/actions/learn-github-actions/contexts#github-context