From e2e3b002f355b211248c34b77544f1d3d04b4fcd Mon Sep 17 00:00:00 2001 From: EncodedVenom Date: Sat, 13 Jul 2024 19:57:23 -0400 Subject: [PATCH] Try using git env --- .github/workflows/ci.yaml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 112c7b8..e165fd0 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -7,9 +7,6 @@ jobs: name: Run Luau Tests runs-on: ubuntu-latest - outputs: - output1: ${{ steps.run_tests.outputs.result }} - steps: - name: Checkout Project uses: actions/checkout@v3 @@ -28,13 +25,11 @@ jobs: run: | output=$(./luau tests/world.luau) echo "$output" - echo "result=$output" >> "$GITHUB_OUTPUT" + echo "COMMAND_OUTPUT=$output" >> $GITHUB_ENV - name: Check Unit Tests - env: - OUTPUT1: ${{ needs.run_tests.outputs.result }} run: | - if [[ "${{ needs.run_tests.outputs.result }}" == *"0 fails"* ]]; then + if [[ "$COMMAND_OUTPUT" == *"0 fails"* ]]; then echo "Unit Tests Passed" else echo "Error: One or More Unit Tests Failed."