Hi,
This suggestion has been discussed here in the GitHub community forum.
In a Github Actions job, after an upload-artifact step, I would like to get the URL of the published artifact in a subsequent step.
The idea is a job using the following steps:
- Build a binary.
- Upload the binary as artifact.
- Trigger a REST API in some Web server, passing the URL of the artifact in a POST parameter, so that the remote server can download the artifact.
How would you get the URL of the artifact in a subsequent step?
I know that there is an Actions API currently in development. But, here, the question is about passing information from the upload-artifact step to the next step.
It could be something like this:
- name: Upload build
uses: actions/upload-artifact@master
with:
name: installer
path: installer.exe
env-url: FOOBAR
- name: Use URL for something
run: echo "${{ env.FOOBAR }}"
The last command would display something like:
https://github.com/user/repo/suites/123456/artifacts/789123
Hi,
This suggestion has been discussed here in the GitHub community forum.
In a Github Actions job, after an
upload-artifactstep, I would like to get the URL of the published artifact in a subsequent step.The idea is a job using the following steps:
How would you get the URL of the artifact in a subsequent step?
I know that there is an Actions API currently in development. But, here, the question is about passing information from the
upload-artifactstep to the next step.It could be something like this:
The last command would display something like: