Skip to content

Some emvironment variables are not available to "composite" Actions. This Action is a node action that makes them available.

License

Notifications You must be signed in to change notification settings

KOLANICH-GHActions/passthrough-restricted-actions-vars

Repository files navigation

A simple GitHub Action passing through the vars restrictred to be used from node.js-based actions

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 to use this action or anything like this; * or use a simple node wrapper to start the bash script. There is a template (https://github.com/KOLANICH-GHActions/node_based_cmd_action_template) of an "Action" doing this.

The code of this action was derived from https://github.com/actions/toolkit/blob/4f7fb6513a355689f69f0849edeb369a4dc81729/packages/artifact/__tests__/ci-test-action/index.js

About

Some emvironment variables are not available to "composite" Actions. This Action is a node action that makes them available.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published