Skip to content

Commit

Permalink
Draft
Browse files Browse the repository at this point in the history
🎵 2024 Spring
  • Loading branch information
katydecorah committed Jun 6, 2024
1 parent dc7ea67 commit d93b222
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
6 changes: 3 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49415,9 +49415,9 @@ var github = __nccwpck_require__(5438);
async function action() {
try {
const filename = (0,lib_core.getInput)("filename");
const playlistName = github?.context?.payload?.inputs?.payload?.["playlist-name"] ||
(0,lib_core.getInput)("playlist-name");
(0,lib_core.info)(`payload: ${github?.context?.payload?.inputs?.payload?.["playlist-name"]}`);
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) {
Expand Down
8 changes: 3 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,12 @@ export type WorkflowPayload = {
export async function action() {
try {
const filename = getInput("filename");
const payload = github.context.payload.inputs;

const playlistName =
github?.context?.payload?.inputs?.payload?.["playlist-name"] ||
getInput("playlist-name");
payload?.["playlist-name"] || getInput("playlist-name");

info(
`payload: ${github?.context?.payload?.inputs?.payload?.["playlist-name"]}`
);
info(`payload: ${payload?.["playlist-name"]}`);
info(`action input: ${getInput("playlist-name")}`);
info(`playlistName: ${playlistName}`);

Expand Down

0 comments on commit d93b222

Please sign in to comment.