From e7a346325a3c43824441b6bd28b0571f919c0395 Mon Sep 17 00:00:00 2001 From: Kenneth Yang <82800265+kjy5@users.noreply.github.com> Date: Sun, 11 Feb 2024 12:27:36 -0800 Subject: [PATCH] Run on main to cache (#341) --- .github/workflows/build.yml | 3 +++ .github/workflows/reformat-and-lint.yml | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8d6e54d..c8d7417 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,6 +3,9 @@ name: Build Website # Controls when the workflow will run on: pull_request: + push: + branches: + - main # Allows you to run this workflow manually from the Actions tab workflow_dispatch: diff --git a/.github/workflows/reformat-and-lint.yml b/.github/workflows/reformat-and-lint.yml index 3154944..56d12dc 100644 --- a/.github/workflows/reformat-and-lint.yml +++ b/.github/workflows/reformat-and-lint.yml @@ -2,6 +2,9 @@ name: Reformat and Lint on: pull_request: + push: + branches: + - main workflow_dispatch: jobs: @@ -40,6 +43,7 @@ jobs: run: pnpm lint - name: ⬆️ Commit changes + if: github.ref != 'refs/heads/main' uses: stefanzweifel/git-auto-commit-action@v5 with: commit_message: Reformat and Lint