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] upload-artifact does not respect the working directory #294

Open
rodush opened this issue Feb 9, 2022 · 3 comments · May be fixed by #477
Open

[bug] upload-artifact does not respect the working directory #294

rodush opened this issue Feb 9, 2022 · 3 comments · May be fixed by #477
Labels
bug Something isn't working

Comments

@rodush
Copy link

rodush commented Feb 9, 2022

What happened?

When the working directory for the whole job is changed via:

...
defaults:
    run:
        working-directory: some-directory

and the path to artefact is specified as

...
with:
    path: some-file.txt

then the Action fails to find the file.

What did you expect to happen?

Upload Artifact action should respect the "working-directory" parameter, instead of trying to resolve file from the github.workspace

How can we reproduce it?

Use the yaml snippets from the description above

Anything else we need to know?

No response

What version of the action are you using?

v2

What are your runner environments?

linux

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

No response

@rodush rodush added the bug Something isn't working label Feb 9, 2022
@krystof-k
Copy link

Still happening in v3. Very confusing, especially with the docs as fixed in #318.

@victorlin
Copy link

This is user error. working-directory has no effect on any actions, including actions/upload-artifact. See #196.

I don't think there is a way to specify a working directory for this action.

@agostbiro
Copy link

I don't think it's user error. The readme says "[r]elative paths are rooted against the current working directory".

@kireerik kireerik linked a pull request Dec 16, 2023 that will close this 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
4 participants