Skip dry run when no relevant files #729
Workflow file for this run
This file contains hidden or 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: 'Check PR' | ||
| on: | ||
| pull_request | ||
| defaults: | ||
| run: | ||
| shell: bash | ||
| jobs: | ||
| kotlin-tests: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v3 | ||
| - name: Check for modified code | ||
| id: diff | ||
| uses: tj-actions/changed-files@v24 | ||
| with: | ||
| files: | | ||
| **/src/** | ||
| **/*.gradle* | ||
| ./gradle/* | ||
| - name: gradle check | ||
| if: ${{ steps.diff.outputs.all_modified_files }} | ||
| uses: ./.github/actions/build | ||
| with: | ||
| tasks: 'check' | ||
| # artifact-name: 'Test reports (${{matrix.runner}})' | ||
| # path-to-upload: '**/build/reports/tests/**' | ||
| python-tests: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v3 | ||
| - name: Check for modified code | ||
| id: diff | ||
| uses: tj-actions/changed-files@v24 | ||
| with: | ||
| files: | | ||
| **/*.py | ||
| - name: 'unittest discover' | ||
| if: ${{ steps.diff.outputs.all_modified_files }} | ||
| run: python3 -m unittest discover -bs .github/scripts | ||
| publish-javadoc-dry-run: | ||
| - name: Check for modified code | ||
| id: diff | ||
| uses: tj-actions/changed-files@v24 | ||
| with: | ||
| files: | | ||
| .github/workflows/publish-javadoc.yml | ||
| .github/scripts/* | ||
| **/src/** | ||
| **/*.gradle* | ||
| ./gradle/* | ||
| - name: Trigger dry run | ||
| if: ${{ steps.diff.outputs.all_modified_files }} | ||
| uses: ./.github/workflows/publish-javadoc.yml | ||
| check-new-api-spec-dry-run: | ||
| - name: Check for modified code | ||
| id: diff | ||
| uses: tj-actions/changed-files@v24 | ||
| with: | ||
| files: | | ||
| .github/workflows/check-new-api-spec.yml | ||
| .github/scripts/* | ||
| - name: Trigger dry run | ||
| if: ${{ steps.diff.outputs.all_modified_files }} | ||
| uses: ./.github/workflows/check-new-api-spec.yml | ||