From 997f0c8b68a80980562ee50793ef5e9e5ebf7068 Mon Sep 17 00:00:00 2001 From: Brian Wo <45139213+brainwo@users.noreply.github.com> Date: Sun, 19 May 2024 15:23:46 +0800 Subject: [PATCH] ci!: allows non-push events --- .github/workflows/upload.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/upload.yml b/.github/workflows/upload.yml index 84a85fb..e673ab8 100644 --- a/.github/workflows/upload.yml +++ b/.github/workflows/upload.yml @@ -21,7 +21,7 @@ concurrency: jobs: build: - if: "contains(github.event.head_commit.message, '!')" + if: "!(github.event_name == 'push') || contains(github.event.head_commit.message, '!')" runs-on: ubuntu-latest steps: - name: Checkout @@ -42,7 +42,7 @@ jobs: path: "./public" deploy: - if: "contains(github.event.head_commit.message, '!')" + if: "!(github.event_name == 'push') || contains(github.event.head_commit.message, '!')" environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }}