Skip to content

Commit

Permalink
skip runs in GH Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeKarow committed Feb 5, 2024
1 parent 4194ca0 commit 01d4ecb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/db/prisma/dataMigrationRunner.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable node/no-process-env */
/* eslint-disable @typescript-eslint/no-explicit-any */
import {
Listr,
Expand Down Expand Up @@ -34,6 +35,9 @@ const jobs = new Listr<Context>(
{
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 },
})
Expand Down

0 comments on commit 01d4ecb

Please sign in to comment.