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

Re: Publishing download links in the check details instead of posting a comment

Cool. I didn't notice yours was triggered on a pull_request event.

 

I dived a bit more into it. It appears you can the right SHA in a pull request from ${{ github.event.after }} (can also be used on push events).${{ github.event.head_commit.id }}also looks like a possibility.

 

I made a new PR for testing this: https://github.com/arnested/playground/pull/6

 

There is two workflows: one triggering on push and one on pull_request. Both dumps the the context for debugging and both post a status.

Highlighted
Copilot Lvl 3
Message 12 of 13

Re: Publishing download links in the check details instead of posting a comment

Uh, great. I will refactor my code I guess, that is way more beautiful.

Highlighted
Copilot Lvl 3
Message 13 of 13

Re: Publishing download links in the check details instead of posting a comment

Note for later reference; all three solutions have the problem that they can't get the commit sha for the first commit in a PR. I tried all of them:

 

 

If someone finds a solution in the future, let me know ;)