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] A name with 2 dashes causes path to be ignored. #648

Open
mandrachek opened this issue Nov 22, 2024 · 0 comments
Open

[bug] A name with 2 dashes causes path to be ignored. #648

mandrachek opened this issue Nov 22, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@mandrachek
Copy link

What happened?

I encountered a situation where multiple dashes in the name appear to cause the path parameter to be ignored.

- name: Upload Build Outputs
  uses: actions/upload-artifact@v4
  if: always()
  with:
     name: release-bundle-outputs
     path: app/build/outputs/
     overwrite: true

uploads a zip file with the entire workspace, e.g., ., which when downloaded includes app/build/outputs, but everything else as well. Changing the name to appBundle-outputs resolves the issue and the zip file contains just the app/build/outputs cotntent.

What did you expect to happen?

The uploaded zip file to only contain the content at the specified path.

How can we reproduce it?

Do an upload of a sub-directory path with "release-apk-outputs" or "release-bundle-outputs" as the name.

Anything else we need to know?

No response

What version of the action are you using?

4.4.3

What are your runner environments?

self-hosted, linux

Are you on GitHub Enterprise Server? If so, what version?

NO

@mandrachek mandrachek added the bug Something isn't working label Nov 22, 2024
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

1 participant