env-ci icon indicating copy to clipboard operation
env-ci copied to clipboard

feat(github): add buildUrl

Open SantiMA10 opened this issue 2 years ago • 3 comments

Add support for buildUrl inside GitHub Actions

The needed GITHUB_SERVER_URL env var with the server URL is available in the GitHub Actions environment (see docs)

SantiMA10 avatar Apr 07 '22 17:04 SantiMA10

@SantiMA10 sorry for the long delay on this. would you be willing to resolve the conflicts?

also, the docs that you link to show the following, which doesnt quite align with your contribution:

If you need to use the URL of running a workflow from a job, you can combine these environment variables: $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID

travi avatar Sep 22 '22 22:09 travi

Sorry for the delay, I had a busy few days

About the docs, I wanted to point out that the GITHUB_SERVER_URL is available since the other env vars are already been used in the GitHub Actions integration.

SantiMA10 avatar Oct 08 '22 17:10 SantiMA10

This is one comment in the GitHub discussions that mention the pattern of a URL for a specific run, let me know if you need more documentation about it

https://github.com/orgs/community/discussions/25470#discussioncomment-3248015

SantiMA10 avatar Oct 08 '22 17:10 SantiMA10