Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Files input doesn't work when running with act #251

Closed
3 tasks done
stevehipwell opened this issue Nov 15, 2021 · 2 comments
Closed
3 tasks done

[BUG] Files input doesn't work when running with act #251

stevehipwell opened this issue Nov 15, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@stevehipwell
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Does this issue exist in the latest version?

  • I'm using the latest release

Describe the bug?

When running this action with act (medium image) and providing a files input, the full list of modified files is returned rather than the a filtered list.

To Reproduce

  1. Add action to repo as configured below
  2. Add multiple changed files in commit, but only 1 with a .yaml extension
  3. Run action locally with act
name: Test

on:
  push:

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2
        with:
          fetch-depth: 0

      - name: Get changes
        id: changes
        uses: tj-actions/changed-files@v11.6
        with:
          files: \.yaml$

      - name: Show changes
        shell: bash
        run: |
          set -euo pipefail

          for file in ${{ steps.changes.outputs.all_modified_files }}
          do
            echo "${file}"
          done

What OS are you seeing the problem on?

ubuntu-latest or ubuntu-20.04

Expected behavior?

The same output should happen with act and on GitHub.

Relevant log output

No response

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@stevehipwell stevehipwell added the bug Something isn't working label Nov 15, 2021
@github-actions
Copy link
Contributor

Thanks for reporting this issue.

@jackton1
Copy link
Member

After testing this locally I can confirm that this is a problem with act, and I created a related issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants