How can I use self-hosted runners with github classrooms?

Hi! My class ran out of actions credits so we decided to move to self-hosted runners. The issue is I can’t figure out how to make the generated repositories use that. I tried prepopulating the workflow yml but generating a repository overwrote it to use ubuntu-latest instead of self-hosted. Currently I have a second workflow yml which works more or less but I worry it’ll confuse students to have the original classroom.yml queueing up a second set of tests which will always fail. How can I configure github classrooms to not generate classroom.yml on start and to use my self-hosted yml? Or alternatively; how can I configure it to generate a repository which uses self-hosted for the runners.


1 Like

The trick is avoid using the test form on GitHub classroom, because it rewrites de workflow.yml.
Edit your the autograding.json file directly.