Skip to content

Commit 5e6408d

Browse files
committed
[GHA] 'site' should run on 'prepare release' commit
We want to deploy the site when we release new version, however, with the current 'if' condition, the 'site' action does not run on the target commit. The commit message of a release starts with "[maven-release-plugin] prepare release".
1 parent 9d1f02e commit 5e6408d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/site.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
build:
10-
if: github.repository_owner == 'mybatis' && ! contains(toJSON(github.event.head_commit.message), '[maven-release-plugin]')
10+
if: github.repository_owner == 'mybatis' && contains(toJSON(github.event.head_commit.message), '[maven-release-plugin] prepare release')
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)