Skip to content

Commit

Permalink
check out if it's set
Browse files Browse the repository at this point in the history
  • Loading branch information
bdemann committed Oct 9, 2024
1 parent 6efeb85 commit fec2f9c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/run-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit fec2f9c

Please sign in to comment.