From b6ced8d9d28f48cc4f74ca21b30a68824b02a59f Mon Sep 17 00:00:00 2001 From: Mint Thompson Date: Mon, 4 Nov 2024 08:41:55 -0500 Subject: [PATCH] Run lint/prettier on push to any branch, not just main --- .github/workflows/ci.yml | 8 +------- src/commands.ts | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4fe678b..77a8e95 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,12 +1,6 @@ name: CI -on: - pull_request: - types: [opened] - push: - branches: - - main - workflow_dispatch: +on: [push, pull_request, workflow_dispatch] jobs: checks: diff --git a/src/commands.ts b/src/commands.ts index 279fc11..c400013 100644 --- a/src/commands.ts +++ b/src/commands.ts @@ -19,7 +19,7 @@ export async function validate( const format = getFileFormat(filepath, options) if (!format) { console.log( - `This is not a valid file type. Files must be in a required CMS template format (.json or .csv)` + "This is not a valid file type. Files must be in a required CMS template format (.json or .csv)" ) return }