Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
freeziyou authored Jan 30, 2024
1 parent 4c50124 commit aab0761
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
jobs:
build-main-app:
runs-on: ubuntu-latest
if: contains(github.event.head_commit.modified, 'website/') == false
if: ${{ github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && !contains(github.event.head_commit.modified, 'website')) }}
steps:
- name: Check out the repo
uses: actions/checkout@v2
Expand All @@ -30,7 +30,7 @@ jobs:

build-website:
runs-on: ubuntu-latest
if: contains(github.event.head_commit.modified, 'website/')
if: ${{ github.event_name == 'workflow_dispatch' || contains(github.event.head_commit.modified, 'website') }}
steps:
- name: Check out the repo
uses: actions/checkout@v2
Expand Down

0 comments on commit aab0761

Please sign in to comment.