checkout v2 uses node.js v12 which is has been recently deprecated by github so switch to using the one on the main branch.