'How to get current workflow properties from node.js?

I have several GitHub actions created with workflow *.yml files. They run automated tests. On each scheduled run of these workflows, I need to get some properties from the current workflow from my node.js code that is running. For example name.

How do I do that?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source