Skip to content

Commit

Permalink
Update git command in Deploy function
Browse files Browse the repository at this point in the history
The git command used in the Deploy function has been corrected to stage all changes before making a commit. Previously, amendments were directly committed which might have omitted some changes. This ensures all changes are properly staged and committed each time this function is used.
  • Loading branch information
umputun committed Jan 2, 2024
1 parent 58861d1 commit 255aae5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion publisher/app/cmd/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ var superUsersTelegram = []string{"umputun", "bobuk", "ksenks", "grayodesa", "al
// 4. Archive the news.
func (d *Deploy) Do(episodeNum int) error {
log.Printf("[INFO] commit new episode to git")
d.Run(fmt.Sprintf(`git pull && git commit -am "episode %d" && git push`, episodeNum))
d.Run(fmt.Sprintf(`git pull && git add . && git commit -m "episode %d" && git push`, episodeNum))

log.Printf("[INFO] remote site update")
d.Run("ssh [email protected]",
Expand Down

0 comments on commit 255aae5

Please sign in to comment.