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 \