Skip to content

Commit

Permalink
build: avoid error status code (#13141)
Browse files Browse the repository at this point in the history
* refactor: minor

* refactor: minor

* refactor: minor

* refactor: minor

* refactor: minor

* refactor: revert some
  • Loading branch information
yuqizhou77 authored Feb 8, 2025
1 parent 574dfd4 commit 1aa02d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/prerelease-feature-control.sh
Original file line number Diff line number Diff line change
@@ -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."
2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1aa02d1

Please sign in to comment.