Truncate runDir path name

This commit is contained in:
Matthew Cane 2024-04-23 11:03:54 +01:00
parent fdc6583d4e
commit 81886c7276
No known key found for this signature in database
GPG Key ID: 0D0C2E0B88C8E79F

View File

@ -13,7 +13,7 @@ actionsToolkit.run(
// main
async () => {
const input: context.Inputs = context.getInputs();
const runDir = path.join(os.homedir(), `setup-docker-action-${uuid.v4()}`);
const runDir = path.join(os.homedir(), `setup-docker-action-${uuid.v4().slice(0, 8)}`);
if (input.context == 'default') {
throw new Error(`'default' context cannot be used.`);