From 28184775169f6c30c8da3dc3e2edf7bf02b54ab0 Mon Sep 17 00:00:00 2001 From: Jordan Barrett Date: Wed, 18 Oct 2023 15:01:53 +0700 Subject: [PATCH] allow overriding charm name in tokengen script --- .github/charmcraft-tokengen.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/charmcraft-tokengen.sh b/.github/charmcraft-tokengen.sh index a6b7e23..06b82ab 100755 --- a/.github/charmcraft-tokengen.sh +++ b/.github/charmcraft-tokengen.sh @@ -2,8 +2,9 @@ # Generate a Charmcraft token to use in the CI pipeline # The token will be outputted to the file 'charmcraft_token' # It should be added as a GitHub secret under the name 'CHARMCRAFT_AUTH' +CHARM_NAME=${CHARM_NAME:-juju-controller} charmcraft login --export=charmcraft_token \ - --charm=juju-qa-controller \ + --charm="$CHARM_NAME" \ --permission=package-manage-releases \ --permission=package-manage-revisions \ --permission=package-view \