From 24092cbbf9a06a970ff6fa317b5ebd4225060d4b Mon Sep 17 00:00:00 2001 From: jetexe Date: Wed, 17 Jul 2024 14:21:48 +0400 Subject: [PATCH] Add script variables test --- .github/workflows/tests.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d44749a..b7fc61e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -98,6 +98,18 @@ jobs: run: echo "$ENV_VAR" > ./test_env_var.txt post: if grep -q value123 ./test_env_var.txt; then echo "Test passed"; else exit 1; fi + - name: Inline variables + uses: ./ + with: + run: | + INLINE_VAR="value123" ; \ + echo $INLINE_VAR; \ + if [ "$INLINE_VAR" = "value123" ]; then echo "Test passed"; else exit 1; fi + echo "SHARED_VAR=value" >> $GITHUB_ENV + post: | + echo "${{ env.SHARED_VAR }}" + if [ "${{ env.SHARED_VAR }}" = "value" ]; then echo "Test passed"; else exit 1; fi + - name: Multiline with line breaks uses: ./ with: