Update Your Dojo!
.github/workflows/update.yml
:
name: Update Dojo
on: push
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: pwncollege/dojo-update@v1
with:
dojo: <YOUR DOJO ID HERE>
update_code: ${{ secrets.UPDATE_CODE }}
dojo
: The reference id of your dojo, for exampleofficial-dojo
orunofficial-dojo~1a2b3c4d
.update_code
: The update code of your dojo. This can be found by looking at the "Update" link in the dojo's Admin page. It will look like
https://pwn.college/dojo/DOJO_NAME/update/UPDATE_CODE
The update_code
should be a secret, so you should add it to your repository's secrets.
In the above example, the secret has been named UPDATE_CODE
.