The registry-update workflow runs the
update.py script and pushes the changes to the current-registry
branch.
The current-registry
branch is locked (and should remain locked) so in order to allow the workflow to push
changes to this branch we need to provide the workflow with a personal access token (PAT) of an admin or maintainer
user.
The following steps must be taken by a user with "Admin" or "Maintainer" level permissions for this repository.
- create a PAT on GitHub with permission to write to this repository.
- On github.com go to user settings: Settings > Developer Settings > Personal access tokens
- Follow the steps to create a PAT (remember the value of the token for the next step)
- add that PAT to workflows for this repo
- Now go to the settings for this repo: Settings > Secrets and variables > Actions
- Create a new repository secret name
DACCS_NODE_REGISTRY_PAT
with the value of the token from step 1
Remember that if you set an expiry date for this token you'll need to repeat these steps when the token expires.
Before adding a new node to the registry for the first time, ensure that the node has the date_added
field included
in the registry. This should be an iso formatted datetime string which can be generated with the following snippet:
import datetime
datetime.datetime.now(tz=datetime.timezone.utc).isoformat()