Index: .github/workflows/rust-clippy.yml ================================================================== --- .github/workflows/rust-clippy.yml +++ .github/workflows/rust-clippy.yml @@ -1,7 +1,10 @@ name: rust-ci -on: [ push ] +on: + push: + branches: [ master, release ] + pull_request: # sccache enable for rust/C builds env: SCCACHE_GHA_ENABLED: "true" RUSTC_WRAPPER: "sccache" @@ -8,10 +11,11 @@ jobs: rust-ci-run: name: Run rust-clippy analyzing and tests runs-on: ubuntu-latest + if: github.event_name == 'push' || (github.head_ref != 'master' && github.head_ref != 'release') permissions: contents: read steps: # SETUP - uses: actions/checkout@v6