actions / upload-artifact

MIT License
3.01k stars 683 forks source link

[feat req] Git-generated artifact name #502

Open ModischFabrications opened 5 months ago

ModischFabrications commented 5 months ago

What would you like to be added?

I would like an option to generate unique names based on the git state instead of the generic name "artifact".

This is my current workaround (output define, extra step, variable expansion later): https://github.com/ModischFabrications/turn_indicator_pcb/actions/runs/6606497177/workflow#L28

which results in a string like "turn_indicator_pcb_master_6606497177_2023-10-23"

Why is this needed?

I want to archive the resulting artifacts, but the default implementation doesn't offer a simple way to give unique names.

Xottab-DUTY commented 5 months ago

This could be easily solved with #349: You generate the name with git and just upload the artifact as-is.