Hello! Recent update (1.24.0) has introduced an artifact download API which allows to download artifacts using christopherhx/gitea-download-artifact@v4
action (see more: Artifacts download api for artifact actions v4 by ChristopherHX · Pull Request #33510 · go-gitea/gitea · GitHub).
However it requires a run id to be passed to the action. Can somebody please tell me how to get the run id knowing run index?
Hi, did you ever figure this one out?
For my “splitted“ workflows, I have to do like this: (using actions/github-script)
- artifact name in pull request: name-[pr-number]
- in main merge:
2.1 look up pr based on merge-commit_sha = context.sha
2.1 lookup artifacts based on artifact-name to get workflow_run.id - download artifact based on name and run-id.
It works, but is somewhat cumbersome.