mirror of
https://github.com/goreleaser/goreleaser-action
synced 2026-06-29 23:47:30 +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:
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+8
-1
@@ -32,7 +32,14 @@ async function run(): Promise<void> {
|
|||||||
if (argv.config) {
|
if (argv.config) {
|
||||||
yamlfile = argv.config;
|
yamlfile = argv.config;
|
||||||
} else {
|
} 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)) {
|
if (fs.existsSync(f)) {
|
||||||
yamlfile = f;
|
yamlfile = f;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user