Skip to content

Commit

Permalink
Handle node_options in setenv
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Potter committed Nov 20, 2023
1 parent 4912919 commit 8b97e62
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions actions/load-env/action.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
name: "Load environment"
description: "Load environment variables"

outputs:
node_options:
description: "NODE_OPTIONS environment variable from .env"
value: ${{ steps.source-env.outputs.node_options }}

runs:
using: "composite"
outputs:
node_options: ${{ steps.source-env.outputs.node_options }}
steps:
- name: Load .env variables
id: source-env
- id: source-env
name: Load .env variables
if: ${{ hashFiles('.env') != '' }}
uses: c-py/action-dotenv-to-setenv@v5
with:
Expand Down

0 comments on commit 8b97e62

Please sign in to comment.