From fec2f9c0b7114e16caa6a84a44bff786aac906c6 Mon Sep 17 00:00:00 2001 From: Benjamin DeMann Date: Wed, 9 Oct 2024 10:59:24 -0600 Subject: [PATCH] check out if it's set --- .github/workflows/run-test.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/run-test.yml b/.github/workflows/run-test.yml index 3b8ccd7cc7..a200bf87fa 100644 --- a/.github/workflows/run-test.yml +++ b/.github/workflows/run-test.yml @@ -56,17 +56,32 @@ jobs: fi done echo "Doing a less odd test" + if [[ -v AZLE_IS_MAIN_BRANCH_PUSH ]]; then + echo "AZLE_IS_MAIN_BRANCH_PUSH is set" + else + echo "AZLE_IS_MAIN_BRANCH_PUSH is not set" + fi if [ $AZLE_IS_MAIN_BRANCH_PUSH ]; then echo "AZLE_IS_MAIN_BRANCH_PUSH is $AZLE_IS_MAIN_BRANCH_PUSH" else echo "AZLE_IS_MAIN_BRANCH_PUSH is not defined" fi + if [[ -v AZLE_IS_MAIN_BRANCH_MERGE_FROM_RELEASE_PUSH ]]; then + echo "AZLE_IS_MAIN_BRANCH_MERGE_FROM_RELEASE_PUSH is set" + else + echo "AZLE_IS_MAIN_BRANCH_MERGE_FROM_RELEASE_PUSH is not set" + fi echo "Print AZLE_IS_MAIN_BRANCH_MERGE_FROM_RELEASE_PUSH anyway: $AZLE_IS_MAIN_BRANCH_MERGE_FROM_RELEASE_PUSH" if [ $AZLE_IS_MAIN_BRANCH_MERGE_FROM_RELEASE_PUSH ]; then echo "AZLE_IS_MAIN_BRANCH_MERGE_FROM_RELEASE_PUSH is $AZLE_IS_MAIN_BRANCH_MERGE_FROM_RELEASE_PUSH" else echo "AZLE_IS_MAIN_BRANCH_MERGE_FROM_RELEASE_PUSH is not defined" fi + if [[ -v AZLE_IS_RELEASE_BRANCH_PR ]]; then + echo "AZLE_IS_RELEASE_BRANCH_PR is set" + else + echo "AZLE_IS_RELEASE_BRANCH_PR is not set" + fi echo "Print AZLE_IS_RELEASE_BRANCH_PR anyway: $AZLE_IS_RELEASE_BRANCH_PR" if [ $AZLE_IS_RELEASE_BRANCH_PR ]; then echo "AZLE_IS_RELEASE_BRANCH_PR is $AZLE_IS_RELEASE_BRANCH_PR"