Merge pull request #1493 from urfave/fix-mkdocs-remote

Accept the `MKDOCS_REMOTE_GITHUB_TOKEN` var as intended
This commit is contained in:
Dan Buch 2022-09-12 10:15:51 -04:00 committed by GitHub
commit 9120e06825
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,7 +113,11 @@ func main() {
Name: "set-mkdocs-remote", Name: "set-mkdocs-remote",
Action: SetMkdocsRemoteActionFunc, Action: SetMkdocsRemoteActionFunc,
Flags: []cli.Flag{ Flags: []cli.Flag{
&cli.StringFlag{Name: "github-token", Required: true}, &cli.StringFlag{
Name: "github-token",
EnvVars: []string{"MKDOCS_REMOTE_GITHUB_TOKEN"},
Required: true,
},
}, },
}, },
{ {