Skip to content

"node" Actions have more priveleged access than "composite" actions. So it is sometimes needed to embed a "shell script" into a hode action. This is a template

License

KOLANICH-GHActions/node_based_cmd_action_template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple GitHub Action calling a bash script Unlicensed work

Though now GitHub supports so called "composite" actions, that declare intention to use shell scripts explicitly, they are not exposed to certain environment variables, strictly required to do some actions, like uploading artifacts: ACTIONS_RUNTIME_URL, ACTIONS_RUNTIME_TOKEN GITHUB_RUN_ID and maybe some other.

More info:

So you have 2 options: * either use a simple node wrapper to start the bash script. This repo is a template of an "Action" doing this. * or use a node script fetching the needed vars and passing them. https://github.com/KOLANICH-GHActions/passthrough-restricted-actions-vars should help you with this.

About

"node" Actions have more priveleged access than "composite" actions. So it is sometimes needed to embed a "shell script" into a hode action. This is a template

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published