Skip to content

Commit 9b58623

Browse files
committed
feat: do git pull to update rootstack git after deploymen
1 parent fe9c2d6 commit 9b58623

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/otomi-stack.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1969,8 +1969,10 @@ export default class OtomiStack {
19691969
try {
19701970
// Commit and push Git changes
19711971
await this.git.save(this.editor!, encryptSecrets, files)
1972+
// Pull the latest changes to ensure we have the most recent state
1973+
await rootStack.git.git.pull()
19721974

1973-
// Execute the provided action dynamically
1975+
// Update the team configuration of the root stack
19741976
action(rootStack.repoService.getTeamConfigService(teamId))
19751977

19761978
debug(`Updated root stack values with ${this.sessionId} changes`)
@@ -1993,8 +1995,9 @@ export default class OtomiStack {
19931995
try {
19941996
// Commit and push Git changes
19951997
await this.git.save(this.editor!, encryptSecrets, files)
1996-
1997-
// Execute the provided action dynamically
1998+
// Pull the latest changes to ensure we have the most recent state
1999+
await rootStack.git.git.pull()
2000+
// update the repo configuration of the root stack
19982001
action(rootStack.repoService)
19992002

20002003
debug(`Updated root stack values with ${this.sessionId} changes`)

0 commit comments

Comments
 (0)