From fdb3e7ec0a8df9110ff8a91f13a10e0c13845eea Mon Sep 17 00:00:00 2001 From: austinried <4966622+austinried@users.noreply.github.com> Date: Sat, 3 Oct 2026 09:41:25 +0000 Subject: [PATCH] tools: read the GitLab token from GL_TOKEN --- tools/fdroid-submit.nu | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/fdroid-submit.nu b/tools/fdroid-submit.nu index 0db467ef..91974460 100644 --- a/tools/fdroid-submit.nu +++ b/tools/fdroid-submit.nu @@ -6,7 +6,7 @@ # # Reads a recipe from tools/fdroid/.yml, pushes it to a branch on the # fork and opens a merge request against fdroid/fdroiddata. Needs a GitLab -# personal access token with the 'api' scope in GITLAB_TOKEN. +# personal access token with the 'api' scope in GL_TOKEN. const FORK = "austinried/fdroiddata" const UPSTREAM = "fdroid/fdroiddata" @@ -37,9 +37,9 @@ def main [ return } - let token = ($env.GITLAB_TOKEN? | default "") + let token = ($env.GL_TOKEN? | default "") if ($token | is-empty) { - error make { msg: "GITLAB_TOKEN is unset; it needs a GitLab token with the 'api' scope" } + error make { msg: "GL_TOKEN is unset; it needs a GitLab token with the 'api' scope" } } let headers = { "PRIVATE-TOKEN": $token } let fork_id = (http get $"($api)/projects/($fork)" --headers $headers | get id)