mirror of
https://github.com/goreleaser/goreleaser-action.git
synced 2026-05-14 06:40:32 +00:00
fix: support .config directory for goreleaser config files (#500)
* fix: support .config directory for goreleaser config files Add support for .config/goreleaser.yaml and .config/goreleaser.yml configuration files to match GoReleaser's official search order. * run $ docker buildx bake build
This commit is contained in:
parent
90c43f2c19
commit
0931acf1f7
3 changed files with 10 additions and 3 deletions
2
dist/index.js
generated
vendored
2
dist/index.js
generated
vendored
File diff suppressed because one or more lines are too long
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
|
|
@ -32,7 +32,14 @@ async function run(): Promise<void> {
|
|||
if (argv.config) {
|
||||
yamlfile = argv.config;
|
||||
} else {
|
||||
['.goreleaser.yaml', '.goreleaser.yml', 'goreleaser.yaml', 'goreleaser.yml'].forEach(f => {
|
||||
[
|
||||
'.config/goreleaser.yaml',
|
||||
'.config/goreleaser.yml',
|
||||
'.goreleaser.yaml',
|
||||
'.goreleaser.yml',
|
||||
'goreleaser.yaml',
|
||||
'goreleaser.yml'
|
||||
].forEach(f => {
|
||||
if (fs.existsSync(f)) {
|
||||
yamlfile = f;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue