From 1aa02d18b8ba58ffbb16d17f3d24d62e53858f35 Mon Sep 17 00:00:00 2001 From: Yuqi Zhou <86260893+yuqizhou77@users.noreply.github.com> Date: Sat, 8 Feb 2025 14:07:14 +0800 Subject: [PATCH] build: avoid error status code (#13141) * refactor: minor * refactor: minor * refactor: minor * refactor: minor * refactor: minor * refactor: revert some --- .github/scripts/prerelease-feature-control.sh | 2 +- .github/workflows/cd.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/scripts/prerelease-feature-control.sh b/.github/scripts/prerelease-feature-control.sh index 22d335553f..25303e3fde 100644 --- a/.github/scripts/prerelease-feature-control.sh +++ b/.github/scripts/prerelease-feature-control.sh @@ -1,5 +1,5 @@ #!/bin/bash filePath=packages/vscode-extension/src/releaseBasedFeatureSettings.ts echo "Update feature settings in $filePath if alpha or preview release" -sed -i -e "s@const shouldEnableTeamsCopilotChatUI = false@const shouldEnableTeamsCopilotChatUI = true@g" $filePath +#sed -i -e "s@const shouldEnableTeamsCopilotChatUI = false@const shouldEnableTeamsCopilotChatUI = true@g" $filePath echo "Prerelease feature setting update done." diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index f128bf196d..cbb6487f24 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -180,7 +180,7 @@ jobs: if: ${{ github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && (github.event.inputs.preid == 'alpha' || github.event.inputs.preid == 'preview')) }} run: | bash .github/scripts/prerelease-feature-control.sh - changes_detected=$(git status --porcelain | grep "packages/vscode-extension/src/releaseBasedFeatureSettings.ts") + changes_detected=$(git status --porcelain | grep "packages/vscode-extension/src/releaseBasedFeatureSettings.ts" || true) if [ -n "$changes_detected" ]; then echo "Changes detected in releaseBasedFeatureSettings.ts" git add packages/vscode-extension/src/releaseBasedFeatureSettings.ts