Skip to content

Commit 35bac3b

Browse files
committed
chore: fix env variables
1 parent e08cd7b commit 35bac3b

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ jobs:
3030
- name: Print Kotlin install and compiler plugin path
3131
run: |
3232
java -version
33-
echo "Plugin Path: ${{ steps.kotlin-script-exec.outputs.plugin-path }}"
34-
echo "Kotlin Root: ${{ steps.kotlin-script-exec.outputs.kotlin-root }}"
33+
echo "Plugin Path : ${{ steps.kotlin-script-exec.outputs.plugin-path }}"
34+
echo "Plugin Path (Env) : $PLUGIN_PATH"
35+
echo "Kotlin Root : ${{ steps.kotlin-script-exec.outputs.kotlin-root }}"
36+
echo "Kotlin Root (Env) : $KOTLIN_ROOT"
3537
3638
- name: List all the Kotlin binaries
3739
run: |

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,11 @@ fiddling. `kts-exec` is a composite Github Action to execute the Kotlin Script (
3030

3131
### `plugin-path`
3232

33+
Local path to the kotlin `compiler-plugin`. You may also access the path via `${{ env.PLUGIN_PATH }}`.
34+
3335
### `kotlin-root`
3436

37+
The kotlin installation path. You may also access the path via `${{ env.KOTLIN_ROOT }}`.
3538

3639
## Usage
3740

kotlin-plugin.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ if [ -z "${plugin_path}" ]; then
3232
echo "::set-output name=plugin-path::$plugin_file"
3333
else
3434
echo "::set-output name=plugin-path::$plugin_path"
35-
echo "plugin-path=$plugin_path" >>"$GITHUB_ENV"
35+
echo "PLUGIN_PATH=$plugin_path" >>"$GITHUB_ENV"
3636
fi
3737

3838
# Set kotlin install path
3939
if [ -z "${kotlin_root}" ]; then
4040
echo "::set-output name=kotlin-root::UNKNOWN"
4141
else
4242
echo "::set-output name=kotlin-root::$kotlin_root"
43-
echo "kotlin-root=$kotlin_root" >>"$GITHUB_ENV"
43+
echo "KOTLIN_ROOT=$kotlin_root" >>"$GITHUB_ENV"
4444
# echo "{path}" >> $GITHUB_PATH
4545
fi

0 commit comments

Comments
 (0)