Skip to content

Dynamic jobs made easy

Need to dynamically create jobs based on certain criteria? We can pull data from apis, repos, ...etc. Then use that data to dynamically create jobs.

ts
import { job, task } from "@pandaci/core";

const nodeVersions = await fetch("https://getStableNodeVersions.com").then(
  (res) => res.json(),
);

nodeVersions.forEach((version) => {
  job(`Dynamic - ${version}`, () => {
    // ...
  });
});