ci: do not run check on main branch, make publish call it #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Code Check with Gradle | |
on: | |
push: | |
branches-ignore: | |
- main | |
pull_request: | |
workflow_call: | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: '11' | |
distribution: 'zulu' | |
- uses: gradle/actions/setup-gradle@v4 | |
- name: Run checks | |
run: ./gradlew check --continue |