Skip to content

Skip dry run when no relevant files #729

Skip dry run when no relevant files

Skip dry run when no relevant files #729

Workflow file for this run

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

Check failure on line 50 in .github/workflows/pr.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pr.yml

Invalid workflow file

You have an error in your yaml syntax on line 50
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