Share artifacts between workflows / Github Actions

前端 未结 2 910
臣服心动
臣服心动 2021-01-18 02:23

I know that you can share artifacts between jobs of the same workflow...

But how can I share artifacts across different workflows?

2条回答
  •  粉色の甜心
    2021-01-18 02:55

    Probably not yet doable:

    After a workflow ends, you can download an archive of the uploaded artifacts on GitHub by finding the workflow run in the Actions tab. GitHub does not currently offer a REST API to retrieve uploaded artifacts.

    If you need to access artifacts from a previously run workflow, you'll need to store the artifacts somewhere. For example, you could run a script at the end of your workflow to store build artifacts on Amazon S3 or Artifactory, and then use the storage service's API to retrieve those artifacts in a future workflow.

    https://help.github.com/en/actions/configuring-and-managing-workflows/persisting-workflow-data-using-artifacts#sharing-data-between-workflow-runs

提交回复
热议问题