actions / upload-artifact

MIT License
3.16k stars 710 forks source link

Add artifact-id output to v4-beta #448

Closed konradpabjan closed 11 months ago

konradpabjan commented 11 months ago

Part of https://github.com/github/actions-results-team/issues/1987

The upcoming v2.0.0 NPM packages already returns the ID of the artifact that was just created/uploaded.

https://github.com/actions/toolkit/blob/fe3e7ce9a7f995d29d1fcfd226a32bca407f9dc8/packages/artifact/src/internal/shared/interfaces.ts#L17-L21

We just need to be expose this output in this action.

Tested with this example run: https://github.com/bbq-beets/testing-artifacts-v4/actions/runs/6645936116/job/18058310425

image

Also I'm doing some other misc changes