Describe the bug
I'm running a job matrix including with env variables like foo/bar. The artifact names should reflect those env variables, however the name may not contain special characters like a /. It would be convenient to replace non supported characters by _.
Version
*Environment
How to reproduce
Try to create a artifact with the name foo/bar
Ouhh this isn't really a bug but a feature. Can't remove the bug label sorry.

A solution is the following, however I'd prefer having this the default:
- name: sanitize target
run: echo ::set-env name=TARGET_SANI::$(echo ${{ matrix.target }} | tr "/" "_")
- uses: actions/upload-artifact@v2
with:
name: ${{ env.TARGET_SANI }}
I'm inclined to mark this as wontfix @yacaovsnc @joshmgross thoughts?
A couple of reasons why I think this should be wontfix
download-artifact side if we decide to do this so the same artifact gets downloaded. This would be particularly confusing too because if users used the artifact name in another step (in some cases, a folder denoted by the name of the artifact gets created), their path would could be messed up so it's best if we let users just change it themselves.Overall I don't think the trade-off is worth it.
Makes sense.
Most helpful comment
I'm inclined to mark this as
wontfix@yacaovsnc @joshmgross thoughts?A couple of reasons why I think this should be
wontfixdownload-artifactside if we decide to do this so the same artifact gets downloaded. This would be particularly confusing too because if users used the artifact name in another step (in some cases, a folder denoted by the name of the artifact gets created), their path would could be messed up so it's best if we let users just change it themselves.Overall I don't think the trade-off is worth it.