How to get the workflow run ID?

I would like to send a Telegram message containing the URL of a specific workflow run when it failed. I found how to send Telegram message (via appleboy/telegram-action), found the repository info using  ${{ github.repository }} , but I still haven’t found how to get that specific workflow run ID.  By ID, I mean the 12345 in

How can I get the workflow run ID?


Do you mean the run id in runs /12345.? 

There is a run_id property of github context. You could use ${{ github.run_id }} to get the run ID.  

1 Like