Skip to content

Commit

Permalink
fix: make token optional
Browse files Browse the repository at this point in the history
  • Loading branch information
deemp committed Dec 11, 2023
1 parent 9469c11 commit b72f130
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions src/inputs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,3 @@ export const purgeCreatedMaxAge = utils.getInputAsInt(Inputs.PurgeCreated);

export const uploadChunkSize =
utils.getInputAsInt(Inputs.UploadChunkSize) || 32 * 1024 * 1024;

export const token = core.getInput(Inputs.Token, { required: true });
2 changes: 1 addition & 1 deletion src/utils/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export function getMaxDate({
? Inputs.PurgeLastAccessed
: Inputs.PurgeCreated;

const maxAge = core.getInput(inputMaxAge, { required: false });
const maxAge = core.getInput(inputMaxAge);

const maxDate = new Date(time - Number.parseInt(maxAge) * 1000);

Expand Down

0 comments on commit b72f130

Please sign in to comment.