title: How to pass GitHub action event hook from a javascript to a bash file?
body: <p>I want to create a GitHub action that is simple and only run a bash-script file, see previous
  question: <a href="https://stackoverflow.com/questions/58976112/how-to-execute-a-bash-script-from-a-java-script">How to execute a bash-script from a java script</a></p>
  
  <p>With this javascript action, I want to pass values to the bash-script from the JSON payload given by GitHub.</p>
  
  <p>Can this be done with something as simple as an exec command?</p>
  
  <pre><code>    ...
      exec.exec(`export FILEPATH=${filepath}`)
      ...
  
  </code></pre>