diff --git a/.github/workflows/check-code-generation.yaml b/.github/workflows/check-code-generation.yaml index c7f2c19..743e125 100644 --- a/.github/workflows/check-code-generation.yaml +++ b/.github/workflows/check-code-generation.yaml @@ -37,5 +37,5 @@ jobs: # git add ./python # git diff --staged --quiet || git commit -s -m "[Python]: Add generated code" run: | - git diff --quiet --no-index -- ./rust-dist/astarteplatform.msghub.rs ./rust/astarte-message-hub-proto/src/astarteplatform.msghub.rs + git --no-pager diff --no-index -- ./rust-dist/astarteplatform.msghub.rs ./rust/astarte-message-hub-proto/src/astarteplatform.msghub.rs echo "Generation OK" \ No newline at end of file diff --git a/.github/workflows/code-generation.yaml b/.github/workflows/code-generation.yaml index aa485a3..c7d4918 100644 --- a/.github/workflows/code-generation.yaml +++ b/.github/workflows/code-generation.yaml @@ -39,12 +39,11 @@ jobs: rust-code-generation: needs: [ reuse ] uses: ./.github/workflows/rust-code-generation.yaml - rust-code-check: - needs: [ rust-code-generation ] - uses: ./.github/workflows/rust-code-check.yaml - commit-codegen: - # if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' - needs: [ python-code-generation, rust-code-check ] + check-codegen: + needs: [ python-code-generation, rust-code-generation ] permissions: contents: write - uses: ./.github/workflows/commit-code-generation.yaml + uses: ./.github/workflows/check-code-generation.yaml + # rust-code-check: + # needs: [ check-codegen ] + # uses: ./.github/workflows/rust-code-check.yaml diff --git a/.reuse/dep5 b/.reuse/dep5 index ac0020f..83e731b 100644 --- a/.reuse/dep5 +++ b/.reuse/dep5 @@ -5,3 +5,7 @@ Source: https://github.com/astarte-platform/astarte-message-hub-proto Files: python/astarteplatform/msghub/* Copyright: SECO Mind Srl License: CC0-1.0 + +Files: rust/astarte-message-hub-proto/src/astarteplatform.msghub.rs +Copyright: SECO Mind Srl +License: Apache-2.0