From 156af56254a84f56f8f529597b9346ab39589b7e Mon Sep 17 00:00:00 2001 From: C <3979063+craig8@users.noreply.github.com> Date: Fri, 12 May 2023 10:48:42 -0700 Subject: [PATCH] Don't deploy if from main ref --- .github/workflows/deploy-pre-release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/deploy-pre-release.yml b/.github/workflows/deploy-pre-release.yml index 3ae0400..d50797e 100644 --- a/.github/workflows/deploy-pre-release.yml +++ b/.github/workflows/deploy-pre-release.yml @@ -19,6 +19,7 @@ env: jobs: deploy-pre-release: + if: github.ref_name != 'main' runs-on: ubuntu-22.04 steps: - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."