From 01d4ecb8dac1eeceba3f3df02fe8ca3546284113 Mon Sep 17 00:00:00 2001 From: Joe Karow <58997957+JoeKarow@users.noreply.github.com> Date: Mon, 5 Feb 2024 11:38:31 -0500 Subject: [PATCH] skip runs in GH Actions --- packages/db/prisma/dataMigrationRunner.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/db/prisma/dataMigrationRunner.ts b/packages/db/prisma/dataMigrationRunner.ts index 2d1b1bc77c..84e6f4cfed 100644 --- a/packages/db/prisma/dataMigrationRunner.ts +++ b/packages/db/prisma/dataMigrationRunner.ts @@ -1,3 +1,4 @@ +/* eslint-disable node/no-process-env */ /* eslint-disable @typescript-eslint/no-explicit-any */ import { Listr, @@ -34,6 +35,9 @@ const jobs = new Listr( { title: 'Determine jobs to run', task: async (ctx, task) => { + if (process.env.GITHUB_ACTION) { + return task.skip('Skipping migrations on GitHub Actions') + } const jobs = await prisma.dataMigration.findMany({ select: { jobId: true }, })