Skip to content

Commit b705df5

Browse files
authoredOct 6, 2024··
Test github action with if condition
no-deploy
1 parent 7aed657 commit b705df5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎.github/workflows/deploy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
build:
1010
name: Build Java Project
1111
runs-on: ubuntu-latest
12+
if: "!contains(github.event.head_commit.message, 'no-deploy')"
1213
permissions:
1314
contents: read
1415
steps:
@@ -40,7 +41,6 @@ jobs:
4041
name: Push Docker image to Docker Hub
4142
runs-on: ubuntu-latest
4243
needs: build
43-
if: "!contains(github.event.head_commit.message, 'no-deploy')"
4444
permissions:
4545
contents: read
4646
packages: write

0 commit comments

Comments
 (0)
Please sign in to comment.