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:
Simon Ser 2024-02-15 13:36:31 +01:00
parent 2f8bcb8df7
commit 45812720f3
1 changed files with 1 additions and 2 deletions

View File

@ -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,
},
}