Skip to content

[feat req] path doesn't take variables into account #680

@SetTrend

Description

@SetTrend

What happened?

I'm trying to upload a .NET project artifact. The artifact is stored at $GITHUB_WORKSPACE/ProjectName/bin/Release/net9.0-windows/

However, actions/puload-artifact@4 doesn't seem to resolve the variable I used to address this directory:

Image

What did you expect to happen?

I'd expect actions/puload-artifact@4 to resolve variables, glob patterns and relative paths, and to output the resolved absolute paths prior to uploading, so the actual absolute paths used can be evaluated by the user.

How can we reproduce it?

This is the GitHub Actions step I wrote:

- name: Uploading artifacts
  uses: actions/upload-artifact@v4
  with:
    name: Build result
    path: $GITHUB_WORKSPACE/ProjectName/bin/Release/net9.0-windows/
    overwrite: true
    if-no-files-found: error

What version of the action are you using?

@4

What are your runner environments?

linux or windows – didn't specify

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions