gitsrht-update-hook: always enable secrets when submitting builds
Ensure secrets are enabled for all builds. This disables the auto-detection done by default by builds.sr.ht when the secrets arg is left unspecified. While at it, remove the unbound $execute variable.
This commit is contained in:
parent
2f8bcb8df7
commit
45812720f3
|
@ -289,7 +289,6 @@ func SubmitBuild(ctx context.Context, submitter *GitBuildSubmitter) ([]BuildSubm
|
|||
$note: String,
|
||||
$tags: [String!],
|
||||
$secrets: Boolean,
|
||||
$execute: Boolean,
|
||||
$visibility: Visibility,
|
||||
) {
|
||||
submit(
|
||||
|
@ -297,7 +296,6 @@ func SubmitBuild(ctx context.Context, submitter *GitBuildSubmitter) ([]BuildSubm
|
|||
note: $note,
|
||||
tags: $tags,
|
||||
secrets: $secrets,
|
||||
execute: $execute,
|
||||
visibility: $visibility,
|
||||
) {
|
||||
id
|
||||
|
@ -308,6 +306,7 @@ func SubmitBuild(ctx context.Context, submitter *GitBuildSubmitter) ([]BuildSubm
|
|||
"tags": append(submitter.GetJobTags(), name),
|
||||
"note": submitter.GetCommitNote(),
|
||||
"visibility": submitter.Visibility,
|
||||
"secrets": true,
|
||||
},
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue