ci: Update deploy-to-container/cli.js

This commit is contained in:
Nicolas Giard 2023-11-28 12:25:49 -05:00 committed by GitHub
parent f442d6c0af
commit 0fa51e9016
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,7 +23,7 @@ async function main () {
throw new Error('Missing --branch argument!')
}
if (branch.indexOf('/') >= 0) {
branch = branch.split('/')[1]
branch = branch.split('/').shift().join('-')
}
branch = slugify(branch, { lower: true, strict: true })
if (branch.length < 1) {