Skip to content

Commit

Permalink
ci!: allows non-push events
Browse files Browse the repository at this point in the history
  • Loading branch information
brainwo committed May 19, 2024
1 parent 4a1b782 commit 997f0c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand Down

0 comments on commit 997f0c8

Please sign in to comment.