Cache: Why use multi-line string for restore-keys intead of array?

Created on 4 Nov 2019  路  2Comments  路  Source: actions/cache

Hey,

Just wondering why restore-keys is defined as a multi line string, while yaml obviously supports sequences?

https://github.com/actions/cache/blob/25e0c8faac42f323280d4d39373a00d402bd5e11/src/restore.ts#L23

Thanks!

Most helpful comment

Yep, it's just a workaround until we support list inputs.

Tracking that here: https://github.com/actions/toolkit/issues/184

All 2 comments

Yep, it's just a workaround until we support list inputs.

Tracking that here: https://github.com/actions/toolkit/issues/184

Was this page helpful?
0 / 5 - 0 ratings