mirror of
https://github.com/actions/configure-pages.git
synced 2026-03-30 10:04:52 +00:00
Use local module for removing trailing slash to reduce duplication
This commit is contained in:
@@ -1,11 +1,5 @@
|
||||
const core = require('@actions/core')
|
||||
|
||||
function removeTrailingSlash(str) {
|
||||
if (str.endsWith('/')) {
|
||||
str = str.slice(0, -1)
|
||||
}
|
||||
return str
|
||||
}
|
||||
const removeTrailingSlash = require('./remove-trailing-slash')
|
||||
|
||||
function outputPagesBaseUrl(siteUrl) {
|
||||
// Many static site generators do not want the trailing slash, and it is much easier to add than remove in a workflow
|
||||
|
||||
Reference in New Issue
Block a user