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