Skip to content

Commit 9243a66

Browse files
authored
Dispatch integration test only when the event is push (#476)
1 parent 1ca582a commit 9243a66

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/gradle.yml renamed to .github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
build:
11-
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
11+
if: contains(toJSON(github.event.commits.*.message), '[skip ci]') == false
1212
runs-on: ubuntu-latest
1313

1414
steps:
@@ -37,15 +37,15 @@ jobs:
3737
doma-processor/build/reports
3838
test-criteria/build/reports
3939
- name: Publish packages
40-
if: "github.event_name == 'push'"
40+
if: github.event_name == 'push'
4141
run: ./gradlew publish
4242
env:
4343
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
4444
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}
4545
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.OSSRH_USERNAME }}
4646
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.OSSRH_PASSWORD }}
47-
- name: Run integaration test
48-
if: "github.repository == 'domaframework/doma'"
47+
- name: Dispatch integaration test
48+
if: github.event_name == 'push'
4949
uses: benc-uk/workflow-dispatch@v1
5050
with:
5151
workflow: Java CI with Gradle

0 commit comments

Comments
 (0)