You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
then the testing action needs to know how to checkout the repo that it belongs to. I could hard-code it (as quansight-labs/jupyter-a11y-testing), but that makes it a bit more difficult to test the action via forking.
trallard
changed the title
Modify testing action so that it checks out its own repository
ENH - Modify testing action so that it checks out its own repository
Dec 16, 2022
If we want to be able to create a workflow in the JupyterLab repo that calls an action our repository for accessibility testing like so:
then the testing action needs to know how to checkout the repo that it belongs to. I could hard-code it (as
quansight-labs/jupyter-a11y-testing
), but that makes it a bit more difficult to test the action via forking.I thought the environment variable
$GITHUB_ACTION_REPOSITORY
would do the trick, but when I tested it out, it didn't work. First, I created a repogabalafou/action-sandbox
in which I put a simple action that just prints the environment variables. Then, I created another repo with a workflow that calls the action in the first repo. If you search the log of one of the workflow runs you'll see the following linewhich I think means that the environment variable contains an empty string and not
gabalafou/action-sandbox
, the repo that the contains the action.The text was updated successfully, but these errors were encountered: