diff --git a/.github/workflows/java_lint.yml b/.github/workflows/java_lint.yml index 5bccb5be1..b631819b8 100644 --- a/.github/workflows/java_lint.yml +++ b/.github/workflows/java_lint.yml @@ -2,13 +2,15 @@ name: "Lint Java code" on: push: - paths: - - "**.java" - - "./.github/workflows/java_lint.yml" + branches: + - main pull_request: paths: - - "**.java" - - "./.github/workflows/java_lint.yml" + - ./crates/voicevox_core_java_api/**/*.java + - ./crates/voicevox_core_java_api/gradle/** + - ./crates/voicevox_core_java_api/gradlew + - ./crates/voicevox_core_java_api/settings.gradle + - ./.github/workflows/java_lint.yml defaults: run: diff --git a/.github/workflows/python_lint.yml b/.github/workflows/python_lint.yml index 246b54cf4..177afae54 100644 --- a/.github/workflows/python_lint.yml +++ b/.github/workflows/python_lint.yml @@ -2,13 +2,14 @@ name: "Lint Python code" on: push: - paths: - - "**.py" - - "./.github/workflows/python_lint.yml" + branches: + - main pull_request: paths: - - "**.py" - - "./.github/workflows/python_lint.yml" + - ./crates/voicevox_core_python_api/**/*.py + - ./crates/voicevox_core_python_api/requirements*.txt + - ./crates/voicevox_core_python_api/pyproject.toml + - ./.github/workflows/python_lint.yml defaults: run: