Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improve multiple tokens error (#2733)
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
- Loading branch information
Showing
4 changed files
with
31 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Multiple tokens found, but only one is allowed | ||
|
||
GoReleaser infers if you are using GitHub, GitLab or Gitea by which tokens are provided. | ||
If you have multiple tokens set, you'll get this error. | ||
|
||
Here's an example: | ||
|
||
```sh | ||
⨯ release failed after 0.02s error=gmultiple tokens found, but only one is allowed: GITHUB_TOKEN, GITLAB_TOKEN | ||
|
||
Learn more at https://goreleaser.com/errors/multiple-tokens | ||
``` | ||
|
||
In this case, you either unset `GITHUB_TOKEN` or `GITLAB_TOKEN`. | ||
You can read more about it in the [SCM docs](/scm/github/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters