Skip to content

create a run_all type action for a subset of actions #155

Answered by wjchulme
wjchulme asked this question in Q&A
Discussion options

You must be logged in to vote

Before the run_all action was a built-in feature of openssafely run, it was defined explicitly in the project.yaml as follows:

  run_all:
    needs: [run_model, extract_data]
    run: cohortextractor:latest --version
    outputs:
      moderately_sensitive:
        whatever: project.yaml

This could be re-purposed -- just put all the relevant actions in the needs: section. You still need to have the action itself do something, hence the cohortextractor:latest --version. And since each action also needs to output something, the whatever: project.yaml is also necessary, but ignorable.

Replies: 2 comments 3 replies

Comment options

wjchulme
Feb 12, 2021
Maintainer Author

You must be logged in to vote
2 replies
@julianmatthewman
Comment options

@sebbacon
Comment options

Answer selected by sebbacon
Comment options

You must be logged in to vote
1 reply
@julianmatthewman
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants