File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 2222 version : latest
2323 args : release
2424 env :
25- APP_ENV : production
2625 GH_OAUTH_CLIENT_ID : 178c6fc778ccc68e1d6a
2726 GH_OAUTH_CLIENT_SECRET : ${{secrets.OAUTH_CLIENT_SECRET}}
2827 GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
Original file line number Diff line number Diff line change 99 - -s -w -X github.com/github/gh-cli/command.Version={{.Version}} -X github.com/github/gh-cli/command.BuildDate={{.Date}}
1010 - -X github.com/github/gh-cli/context.oauthClientID={{.Env.GH_OAUTH_CLIENT_ID}}
1111 - -X github.com/github/gh-cli/context.oauthClientSecret={{.Env.GH_OAUTH_CLIENT_SECRET}}
12+ - -X github.com/github/gh-cli.updaterEnabled=yes
1213 goos :
1314 - linux
1415 - darwin
Original file line number Diff line number Diff line change 99 "github.com/github/gh-cli/update"
1010)
1111
12+ var updaterEnabled = "no"
13+
1214func main () {
1315 updateMessageChan := make (chan * string )
1416 go updateInBackground (updateMessageChan )
@@ -29,7 +31,7 @@ func main() {
2931}
3032
3133func updateInBackground (updateMessageChan chan * string ) {
32- if os . Getenv ( "APP_ENV" ) != "production " {
34+ if updaterEnabled != "yes " {
3335 updateMessageChan <- nil
3436 return
3537 }
You can’t perform that action at this time.
0 commit comments