Skip to content

Commit

Permalink
Merge pull request #250 from opensafely-core/iaindillingham/add-proje…
Browse files Browse the repository at this point in the history
…ct-dag-action

Add project-dag action
  • Loading branch information
iaindillingham authored Mar 21, 2024
2 parents 35f9687 + 89863e3 commit b96c71d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
12 changes: 7 additions & 5 deletions DEVELOPERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,20 @@ Any args are passed to pytest.
Deployment uses `dokku` and requires the environment variables defined in `dotenv-sample`.
It is deployed to our `dokku3` instance (see [Dokku Deployment](https://bennettinstitute-team-manual.pages.dev/tools-systems/dokku/)).

## Updating the database
## Adding a new action

As the `dokku` user on dokku3, run:
To add a new action, first edit `actions/jobs/daily/fetch_action.py`.

Then, as the `dokku` user on dokku3, run:

$ dokku enter actions-registry

This starts a bash session connected to the docker container running the application.
You can now run any Django management command, including:
Finally, run:

$ ./manage.py fetch_action opensafely-actions [repo-name]
$ python manage.py runjob actions fetch_action

This fetches metadata about the given action from GitHub.
This fetches metadata about all actions from GitHub.

## Updating the GitHub token

Expand Down
1 change: 1 addition & 0 deletions actions/jobs/daily/fetch_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class Job(DailyJob):
"opensafely-actions/deciles-charts",
"opensafely-actions/demographic-standardisation",
"opensafely-actions/kaplan-meier-function",
"opensafely-actions/project-dag",
"opensafely-actions/safetab",
]

Expand Down

0 comments on commit b96c71d

Please sign in to comment.