From bc76f12b4ba5f641a8c2544969cac71f68fc07c6 Mon Sep 17 00:00:00 2001 From: Chintan Kavathia Date: Thu, 28 Nov 2024 16:30:09 +0530 Subject: [PATCH] test --- .github/workflows/test_and_deploy.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_and_deploy.yml b/.github/workflows/test_and_deploy.yml index 0f070fc52..29c7547de 100644 --- a/.github/workflows/test_and_deploy.yml +++ b/.github/workflows/test_and_deploy.yml @@ -19,7 +19,8 @@ jobs: run: | BRANCH_NAME=${{ github.head_ref }} echo "Branch name is: $BRANCH_NAME" - git ls-remote --heads https://github.com/chintankavathia/ngx-datatable-snapshots.git $BRANCH_NAME + REMOTE_BRANCH=$(git ls-remote --heads https://$SNAPSHOT_REPO_TOKEN@github.com/chintankavathia/ngx-datatable-snapshots.git $BRANCH_NAME) + echo "Remote branch lookup result: $REMOTE_BRANCH" if [ $? -eq 0 ]; then echo "Branch $BRANCH_NAME exists" echo "branch=$BRANCH_NAME" >> $GITHUB_ENV