Access events object or commit history from JS actions #27064
-
I’m trying to build a github action using JavaScript. My action wants to access list of commits included in a push. I can achieve this (when not using JavaScript action) by following command:
Now problem is that I cannot find away to access these Is there a way for JavaScript action to access this raw event object? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
👋 Hey @daisy1754, The full event info can be found in a JSON file located with the |
Beta Was this translation helpful? Give feedback.
👋 Hey @daisy1754,
The full event info can be found in a JSON file located with the
GITHUB_EVENT_PATH
environment variable. Your action should be able to load that file and get any information it needs.