diff --git a/.github/workflows/subproject-changes.yml b/.github/workflows/subproject-changes.yml index ba27dda..83c6582 100644 --- a/.github/workflows/subproject-changes.yml +++ b/.github/workflows/subproject-changes.yml @@ -12,31 +12,26 @@ permissions: on: workflow_call: - inputs: - event_name: - required: true - type: string outputs: czishrink: description: "true if the change affects czishrink or if event_name is not 'pull_request'; false otherwise" - value: ${{ inputs.event_name != 'pull_request' || jobs.changes.outputs.czishrink == 'true' }} + value: ${{ jobs.changes.outputs.czishrink }} czicompress: description: "true if the change affects czicompress or if event_name is not 'pull_request'; false otherwise" - value: ${{ inputs.event_name != 'pull_request' || jobs.changes.outputs.czishrink == 'true' }} + value: ${{ jobs.changes.outputs.czishrink }} jobs: # JOB to run change detection changes: - if: ${{ inputs.event_name == 'pull_request' }} runs-on: ubuntu-latest # Set job outputs to values from filter step outputs: - czishrink: ${{ steps.filter.outputs.czishrink }} - czicompress: ${{ steps.filter.outputs.czicompress }} + czishrink: ${{ github.event_name != 'pull_request' || steps.filter.outputs.czishrink == 'true' }} + czicompress: ${{ github.event_name != 'pull_request' || steps.filter.outputs.czicompress == 'true' }} steps: - - run: echo ${{ github.event_name }} # For pull requests it's not necessary to checkout the code - uses: dorny/paths-filter@v2 + if: ${{ github.event_name == 'pull_request' }} id: filter with: filters: |