Skip to content

Commit a539160

Browse files
authored
fix: change secret && cicd modify secret (#884)
1 parent e2d4ed0 commit a539160

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/go-build-test.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ jobs:
4343
contents: write
4444
env:
4545
SERVER_DIR: open-im-server
46-
CONFIG_PATH: config/notification.yml
46+
NOTIFICATION_CONFIG_PATH: config/notification.yml
47+
SHARE_CONFIG_PATH: config/share.yml
4748
# pull-requests: write
4849
strategy:
4950
matrix:
@@ -79,8 +80,9 @@ jobs:
7980
- name: Modify Server Configuration
8081
run: |
8182
cd ${{ env.SERVER_DIR }}
82-
yq e '.groupCreated.isSendMsg = true' -i ${{ env.CONFIG_PATH }}
83-
yq e '.friendApplicationApproved.isSendMsg = true' -i ${{ env.CONFIG_PATH }}
83+
yq e '.groupCreated.isSendMsg = true' -i ${{ env.NOTIFICATION_CONFIG_PATH }}
84+
yq e '.friendApplicationApproved.isSendMsg = true' -i ${{ env.NOTIFICATION_CONFIG_PATH }}
85+
yq e '.secret = 123456' -i ${{ env.SHARE_CONFIG_PATH }}
8486
8587
- name: Start Server Services
8688
run: |

integration_test/internal/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const (
1010
APIAddr = "http://" + TestIP + ":10002"
1111
WsAddr = "ws://" + TestIP + ":10001"
1212
AdminUserID = "imAdmin"
13-
Secret = "openIM123"
13+
Secret = "123456"
1414
PlatformID = constant.AndroidPlatformID
1515
LogLevel = 3
1616
DataDir = "./data/"

0 commit comments

Comments
 (0)