Skip to content

Commit 1db1b52

Browse files
committed
ci: 🤖 provide env explicitely
this is a known thing with composite: - actions/runner#665 (comment)
1 parent a7723ba commit 1db1b52

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

‎action.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ runs:
6464

6565
- name: Execute NuShell script
6666
run: |
67-
print $env
6867
let script = ($env.INPUT_SCRIPT? | default "")
6968
let script_file = $env.INPUT_SCRIPT-FILE?
7069
let skip_modules = ($env.INPUT_SKIP_MODULES == "true")
@@ -80,6 +79,12 @@ runs:
8079
8180
nu --commands "source run_script.nu"
8281
# nu --commands "open run_script.nu | nu-highlight"
82+
env:
83+
# NOTE: in composite actions this is not provided
84+
# the following mimics the standard naming (input -> env)
85+
INPUT_SCRIPT: ${{ inputs.script }}
86+
INPUT_SCRIPT-FILE: ${{ inputs.script-file }}
87+
INPUT_SKIP_MODULES: ${{ inputs.skip_modules }}
8388
shell: nu {0}
8489

8590
# - name: Execute NuShell script

0 commit comments

Comments
 (0)