# NOT RUN {
make_workflow_block(
IDENTIFIER = "Run calculation",
on = "push",
resolves = "Simple Addition"
)
# many R projects will need this block to first build an image from a DOCKERFILE
make_action_block(
IDENTIFIER = "Build Image",
uses = "actions/docker/cli@c08a5fc9e0286844156fefff2c141072048141f6",
# this is an external github action, referenced tightly by sha
args = "build --tag=repo:latest ."
)
make_action_block(
IDENTIFIER = "Simple Addition",
uses = "maxheld83/ghactions/Rscript-byod@master",
needs = "Build Image",
args = "-e '1+1'"
)
# pasted together, these three blocks make a simple, valid main.workflow file.
# }
Run the code above in your browser using DataLab