Skip to content

Commit

Permalink
[Workflow: Build] Fix skip conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
ShootingStar91 committed Aug 5, 2024
1 parent 34d9acb commit df6eb3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ env:

jobs:
push_backend:
if: github.event.label.name == 'push' && !contains(github.event.head_commit.message, '#no-deploy')
if: ${{ github.event_name == 'release' || (github.event_name == 'push' && contains(github.event.head_commit.message, '#no-deploy')) }}
runs-on: ubuntu-latest
permissions:
packages: write
Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
docker tag $BACKEND_IMAGE_NAME $IMAGE_ID:$VERSION
docker push $IMAGE_ID:$VERSION
push_frontend:
if: github.event.label.name == 'push' && !contains(github.event.head_commit.message, '#no-deploy')
if: ${{ github.event_name == 'release' || (github.event_name == 'push' && contains(github.event.head_commit.message, '#no-deploy')) }}
runs-on: ubuntu-latest
permissions:
packages: write
Expand Down

0 comments on commit df6eb3b

Please sign in to comment.