Skip to content

Commit

Permalink
Build action
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jun 6, 2024
1 parent 7323e57 commit 5176f7b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49400,6 +49400,7 @@ function formatTracks({ name, external_urls, images, tracks, }) {
function formatName(name) {
return name
.replace(/\s/g, "-")
.replace(/[/]/g, "-")
.replace(/[^a-zA-Z0-9-]/g, "")
.replace(/-+/g, "-")
.toLowerCase();
Expand All @@ -49417,9 +49418,6 @@ async function action() {
const filename = (0,lib_core.getInput)("filename");
const payload = github.context.payload.inputs;
const playlistName = payload?.["playlist-name"] || (0,lib_core.getInput)("playlist-name");
(0,lib_core.info)(`payload: ${payload?.["playlist-name"]}`);
(0,lib_core.info)(`action input: ${(0,lib_core.getInput)("playlist-name")}`);
(0,lib_core.info)(`playlistName: ${playlistName}`);
if (!playlistName) {
throw new Error("Playlist name is required");
}
Expand Down

0 comments on commit 5176f7b

Please sign in to comment.