0

Current Behaviour

I have a ci.yml that contains a veracode job and an rspec job, which trigger on a PR. I also have deploy.yml that runs duplicates of these two jobs when dev is pushed to, and a third job that deploys if they succeed.

Desired Behaviour

I'd like to define the two repeated jobs in such a way that they can be used by both files without the repetition.

Similar to In a github actions workflow, is there a way to have multiple jobs reuse the same setup?, but with an entire job definition.

Research

So far I've looked at making bash files, which would save me repeating the run, but still require repeating the majority of each job.

Jules
  • 181
  • 10

0 Answers0