diff --git a/.github/workflows/run-api-test.yml b/.github/workflows/run-api-test.yml index 2bb8d59007..316f71a777 100644 --- a/.github/workflows/run-api-test.yml +++ b/.github/workflows/run-api-test.yml @@ -116,7 +116,7 @@ jobs: # Randomly make it fail to test logic if [[ "$(( ( RANDOM % 5 ) + 1 ))" == "3" ]]; then - echo "last_exit_code=$exit_code" >> "$GITHUB_OUTPUT" + echo "last_exit_code=$exit_code" >> "$GITHUB_ENV" exit 53 fi @@ -133,7 +133,7 @@ jobs: exit_code=1 fi - echo "last_exit_code=$exit_code" >> "$GITHUB_OUTPUT" + echo "last_exit_code=$exit_code" >> "$GITHUB_ENV" exit $last_exit_code - name: Upload artifact if exit code 53