paths-filter icon indicating copy to clipboard operation
paths-filter copied to clipboard

Weird permission issue when tracking changes for new files

Open 0xmichalis opened this issue 2 years ago • 1 comments

I have the following workflow in place:

      - name: Get changed files
        uses: dorny/paths-filter@v2
        id: changes
        with:
          list-files: shell
          filters: |
            artifacts:
            - added|modified: 'data/**/*'
      - name: Conditional
        if: steps.changes.outputs.artifacts == 'true'
        run: |
          echo "Tracked artifacts file have changed"
          artifact=${{ steps.changes.outputs.artifacts_files }}

It seems that the added keyword that helps keep track of new files is causing a permission issue when I am trying to access steps.changes.outputs.artifacts_files in the Conditional stage.

I have created a repo to reproduce this issue at https://github.com/0xmichalis/testdir - you can check the failure in https://github.com/0xmichalis/testdir/pull/1

0xmichalis avatar Dec 02 '22 16:12 0xmichalis

@0xmichalis thanks for reporting the issue. I will look into it. Haven't seen such an error yet.

dorny avatar Dec 04 '22 19:12 dorny