From 5e6408dd6c9857cb685046c6b8eb46e29200bcbd Mon Sep 17 00:00:00 2001 From: Iwao AVE! Date: Wed, 27 Nov 2024 11:10:47 +0900 Subject: [PATCH] [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". --- .github/workflows/site.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/site.yaml b/.github/workflows/site.yaml index 5d6998019fc..74ee53ae454 100644 --- a/.github/workflows/site.yaml +++ b/.github/workflows/site.yaml @@ -7,7 +7,7 @@ on: jobs: build: - if: github.repository_owner == 'mybatis' && ! contains(toJSON(github.event.head_commit.message), '[maven-release-plugin]') + if: github.repository_owner == 'mybatis' && contains(toJSON(github.event.head_commit.message), '[maven-release-plugin] prepare release') runs-on: ubuntu-latest steps: - uses: actions/checkout@v4