Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Pilot Lvl 1
Message 1 of 8

Github Actions url to run

Solved! Go to Solution.

Hi!

I'm trying to create a workflow for deployment, and I'd like to create a deploy status and submit the url to the log of the action that deployed. Very handy if the deply failes I think. Using actions/bin/debug I can't seem to find any reference to the id of the run or url to the run.

 

Is there a way to extract this in some way?

7 Replies
Solution
GitHub Staff
Message 2 of 8

Re: Github Actions url to run

We don't currently expose that information, however I've made a note of this feedback so we can take it into account as we continue to improve actions.

Pilot Lvl 1
Message 3 of 8

Re: Github Actions url to run

Thanks! It would perhaps be great to have it as one of the environment variables. GITHUB_RUN_ID or something along those lines.

Ground Controller Lvl 2
Message 4 of 8

Re: Github Actions url to run

I have similar use case. Would be nice to have this.

Copilot Lvl 2
Message 5 of 8

Re: Github Actions url to run

Any updates on this now with the launch of CI/CD support? 

Exposing the run ID would be really helpful for supporting parallelization for Cypress users.

Copilot Lvl 3
Message 6 of 8

Re: Github Actions url to run

@mcolyer has there been any movement on this item?

Highlighted
Copilot Lvl 3
Message 7 of 8

Re: Github Actions url to run

I was just trying to solve this problem recently, this is what I ended up with in the mean time to just set the deployment url:

 

https://github.com/deliverybot/status/blob/master/index.js#L7

 

Copilot Lvl 3
Message 8 of 8

Re: Github Actions url to run

As requested in https://github.community/t5/GitHub-Actions/Check-Suite-identifier-as-an-environment-variable/m-p/354..., having GITHUB_CHECK_SUITE_ID would allow provision of such URL as follow:

GITHUB_WORKFLOW_URL=https://github.com/$GITHUB_REPOSITORY/commit/$GITHUB_SHA/checks?check_suite_id=$GITHUB_CHECK_SUITE_ID