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

This commit is contained in:
Nicolas Giard 2023-12-05 14:57:10 -05:00 committed by GitHub
parent 5006ea53e6
commit ca60be1299
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('/').shift().join('-')
branch = branch.split('/').slice(1).join('-')
}
branch = slugify(branch, { lower: true, strict: true })
if (branch.length < 1) {